Versions in this module Expand all Collapse all v1 v1.0.0 Sep 1, 2017 Changes in this version + var ErrServerClosed = errors.New("tcp: Server closed") + func ServeAsync(port int, closing chan bool, acceptHandler OnAccept) error + type OnAccept func(c net.Conn) + type Server struct + Closing chan bool + OnAccept OnAccept + func (s *Server) Close() error + func (s *Server) Serve(l net.Listener) error