Documentation ¶
Index ¶
- func AddMLI(mliType MliType, data []byte) []byte
- func HandleError(err error)
- type EchoServ
- type MliType
- type 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
- type TcpMessageHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(err error)
Types ¶
type EchoServ ¶
func (*EchoServ) ListenAndAccept ¶
type NetCatClient ¶
type NetCatClient struct {
// contains filtered or unexported fields
}
func NewNetCatClient ¶
func NewNetCatClient(connectionStr string, mliType MliType) *NetCatClient
func (*NetCatClient) Close ¶
func (nt *NetCatClient) Close()
func (*NetCatClient) IsConnected ¶
func (nt *NetCatClient) IsConnected() bool
func (*NetCatClient) OpenConnection ¶
func (nt *NetCatClient) OpenConnection() (err error)
func (*NetCatClient) ReadNextPacket ¶
func (nt *NetCatClient) ReadNextPacket() ([]byte, error)
func (*NetCatClient) Write ¶
func (nt *NetCatClient) Write(data []byte) (err error)
type TcpHost ¶
type TcpHost struct {
// contains filtered or unexported fields
}
func (*TcpHost) SetHandler ¶
func (tcpHost *TcpHost) SetHandler(handler TcpMessageHandler)
type TcpMessageHandler ¶
Click to show internal directories.
Click to hide internal directories.