Documentation ¶ Index ¶ type Server func New(ip string, port int, conf *quickproto.Config) *Server func (s *Server) Accept() (net.Conn, error) func (s *Server) Addr() string func (s *Server) Listen() error func (s *Server) Read(conn net.Conn) (*quickproto.Message, error) func (s *Server) Terminate() error func (s *Server) Write(conn net.Conn, msg *quickproto.Message) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { IP string PORT int Listener net.Listener Use_Base64 bool Delimiter []byte BUF_SIZE int } func New ¶ added in v1.1.6 func New(ip string, port int, conf *quickproto.Config) *Server func (*Server) Accept ¶ func (s *Server) Accept() (net.Conn, error) func (*Server) Addr ¶ func (s *Server) Addr() string func (*Server) Listen ¶ func (s *Server) Listen() error func (*Server) Read ¶ func (s *Server) Read(conn net.Conn) (*quickproto.Message, error) func (*Server) Terminate ¶ func (s *Server) Terminate() error func (*Server) Write ¶ func (s *Server) Write(conn net.Conn, msg *quickproto.Message) error Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.