Documentation ¶
Overview ¶
Provides various utilities to construct listener
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InternetIP ¶
Types ¶
type ListenerController ¶
func NewListenerController ¶
func NewListenerController(listener net.Listener) *ListenerController
Constructs the controller for usage on "net.Listener"
func (*ListenerController) AcceptLoop ¶
func (c *ListenerController) AcceptLoop(connHandler func(conn net.Conn))
This method would keep accepting message of socket
This method would use go routine to call your conn handler.
func (*ListenerController) Close ¶
func (c *ListenerController) Close()
Close this controller if any looping is running
Click to show internal directories.
Click to hide internal directories.