Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener interface { // Accept waits for and returns the next connection to the listener. Accept() (connection.Connection, error) // Close closes the listener. // Any blocked Accept operations will be unblocked and return errors. Close() error // Addr returns the listener's network address. Addr() net.Addr // FD returns the listener's fd FD() int }
Listener A Listener is a generic network listener for stream-oriented protocols.
type TcpListener ¶
TcpListener tcp network listener.
func (*TcpListener) Accept ¶
func (t *TcpListener) Accept() (connection.Connection, error)
Accept implements Listener.
Click to show internal directories.
Click to hide internal directories.