Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomListener ¶
type CustomListener interface {
net.Listener
CanClose(bool)
GetListener() CustomListener
StopAccept()
}
CustomListener provides an implementation for a custom net.Listener
func NewListener ¶
func NewListener(network, laddr string) (CustomListener, error)
NewListener creates a new CustomListener
func NewListenerWithTimeout ¶
func NewListenerWithTimeout(network, laddr string, timeout time.Duration) (CustomListener, error)
Click to show internal directories.
Click to hide internal directories.