Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveHandler ¶
type ActiveHandler struct { RemoteAddr *net.TCPAddr // remote address of the client // contains filtered or unexported fields }
ActiveHandler handles active connection.
func (*ActiveHandler) Close ¶
func (a *ActiveHandler) Close() error
Close closes only if connection is established.
type Handler ¶
type Handler interface { // Get the connection to transfer data on. Open() (net.Conn, error) // Close the connection (and any associated resource). Close() error }
Handler presents active/passive transfer connection handler.
type PassiveHandler ¶
type PassiveHandler struct { TCPListener *net.TCPListener // TCP Listener (only keeping it to define a deadline during the accept) Listener net.Listener // TCP or SSL Listener Port int // TCP Port we are listening on // contains filtered or unexported fields }
PassiveHandler handles passive connection.
func (*PassiveHandler) Close ¶
func (p *PassiveHandler) Close() error
Close only the client connection is not supported at that time.
func (*PassiveHandler) ConnectionWait ¶
ConnectionWait wait for connection time out
Click to show internal directories.
Click to hide internal directories.