Documentation ¶ Index ¶ type Server type TCPServer func NewTCPServer() *TCPServer func (serv *TCPServer) Listen(addr string) error func (serv *TCPServer) Send(id string, msg model.JT808Msg) func (serv *TCPServer) Start() func (serv *TCPServer) Stop() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server interface { Listen(addr string) error Start() Stop() } type TCPServer ¶ type TCPServer struct { // contains filtered or unexported fields } func NewTCPServer ¶ func NewTCPServer() *TCPServer func (*TCPServer) Listen ¶ func (serv *TCPServer) Listen(addr string) error func (*TCPServer) Send ¶ func (serv *TCPServer) Send(id string, msg model.JT808Msg) 发送消息到终端设备, 外部调用 func (*TCPServer) Start ¶ func (serv *TCPServer) Start() func (*TCPServer) Stop ¶ func (serv *TCPServer) Stop() Source Files ¶ View all Source files server.go tcp_server.go Click to show internal directories. Click to hide internal directories.