Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnReadCallbackFunc ¶
OnReadCallbackFunc is a function to be called when a line is read from Conn
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a server
func (*Server) HandleConn ¶
func (s *Server) HandleConn(conn net.Conn, callback OnReadCallbackFunc)
HandleConn handles a net.Conn
func (*Server) Start ¶
func (s *Server) Start(callback OnReadCallbackFunc) error
Start starts a server and spawns a goroutine when a new connection is accepted
Click to show internal directories.
Click to hide internal directories.