Documentation ¶
Index ¶
- type TCPConn
- func (c *TCPConn) Close() error
- func (c *TCPConn) LocalAddr() net.Addr
- func (c *TCPConn) Read(p []byte) (n int, err error)
- func (c *TCPConn) RemoteAddr() net.Addr
- func (c *TCPConn) TestReadConn(t testing.TB) []byte
- func (c *TCPConn) TestRequest(t testing.TB, data []byte) []byte
- func (c *TCPConn) TestWriteConn(t testing.TB, data []byte)
- func (c *TCPConn) Write(p []byte) (n int, err error)
- type TCPListener
- type TestConnection
- type UDPConn
- func (c *UDPConn) ExpectAddr(addr net.UDPAddr)
- func (c *UDPConn) LocalAddr() net.Addr
- func (c *UDPConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (c *UDPConn) RemoteAddr() net.Addr
- func (c *UDPConn) TestReadConn(t testing.TB) []byte
- func (c *UDPConn) TestRequest(t testing.TB, data []byte) []byte
- func (c *UDPConn) TestWriteConn(t testing.TB, data []byte)
- func (c *UDPConn) WriteTo(p []byte, addr net.Addr) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPConn ¶
type TCPConn struct { net.Conn LAddr net.TCPAddr RAddr net.TCPAddr Reader io.Reader Writer io.Writer // contains filtered or unexported fields }
func (*TCPConn) RemoteAddr ¶
type TCPListener ¶
func (*TCPListener) Accept ¶
func (c *TCPListener) Accept() (net.Conn, error)
Accept waits for and returns the next connection to the listener.
func (*TCPListener) Addr ¶
func (c *TCPListener) Addr() net.Addr
Addr returns the listener's network address.
func (*TCPListener) Close ¶
func (c *TCPListener) Close() error
Close closes the listener. Any blocked Accept operations will be unblocked and return errors.
type TestConnection ¶
Click to show internal directories.
Click to hide internal directories.