Documentation ¶
Index ¶
- func GetPortFromTCPAddr(addr net.Addr) uint
- type BytesConn
- func (*BytesConn) Close() error
- func (*BytesConn) LocalAddr() net.Addr
- func (c *BytesConn) Read(b []byte) (n int, err error)
- func (*BytesConn) RemoteAddr() net.Addr
- func (*BytesConn) SetDeadline(time.Time) error
- func (*BytesConn) SetReadDeadline(time.Time) error
- func (*BytesConn) SetWriteDeadline(time.Time) error
- func (*BytesConn) Write([]byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPortFromTCPAddr ¶
GetPortFromTCPAddr gets the port from a net.Addr.
Types ¶
type BytesConn ¶
BytesConn is a net.Conn implementation, which reads data from a bytes.Buffer.
func (*BytesConn) RemoteAddr ¶
RemoteAddr implements the net.Conn interface.
func (*BytesConn) SetDeadline ¶
SetDeadline implements the net.Conn interface.
func (*BytesConn) SetReadDeadline ¶
SetReadDeadline implements the net.Conn interface.
func (*BytesConn) SetWriteDeadline ¶
SetWriteDeadline implements the net.Conn interface.
Click to show internal directories.
Click to hide internal directories.