server

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL