Versions in this module Expand all Collapse all v0 v0.1.1 Mar 22, 2020 v0.1.0 Jun 16, 2019 Changes in this version + func AddMLI(mliType MliType, data []byte) []byte + func HandleError(err error) + type EchoServ struct + TcpAddr *net.TCPAddr + func (echoServ *EchoServ) ListenAndAccept() (err error) + type MliType string + const Mli2e + const Mli2i + type NetCatClient struct + func NewNetCatClient(connectionStr string, mliType MliType) *NetCatClient + func (nt *NetCatClient) Close() + func (nt *NetCatClient) IsConnected() bool + func (nt *NetCatClient) OpenConnection() (err error) + func (nt *NetCatClient) Read(data []byte) (n int, err error) + func (nt *NetCatClient) ReadNextPacket() ([]byte, error) + func (nt *NetCatClient) Write(data []byte) (err error) + type TcpHost struct + func NewTcpHost(mliType MliType, tcpAddr *net.TCPAddr) *TcpHost + func (tcpHost *TcpHost) SetHandler(handler TcpMessageHandler) + func (tcpHost *TcpHost) Start() + type TcpMessageHandler interface + HandleMessage func(clientCon *net.TCPConn, msgData []byte)