mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
24 lines
391 B
Go
24 lines
391 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package network
|
|
|
|
import "net"
|
|
|
|
var _ net.Conn = (*testConn)(nil)
|
|
|
|
type testConn struct {
|
|
net.Conn
|
|
|
|
localAddr net.Addr
|
|
remoteAddr net.Addr
|
|
}
|
|
|
|
func (c *testConn) LocalAddr() net.Addr {
|
|
return c.localAddr
|
|
}
|
|
|
|
func (c *testConn) RemoteAddr() net.Addr {
|
|
return c.remoteAddr
|
|
}
|