Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackConnect ¶
type CallbackDisconnect ¶
type CallbackRead ¶
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
func (*Handle) Read ¶
func (h *Handle) Read(onRead CallbackRead)
func (*Handle) ReadSize ¶
func (h *Handle) ReadSize(size int, onRead CallbackRead)
func (*Handle) ReadToBuffer ¶
func (h *Handle) ReadToBuffer(buffer []byte, size int, onRead CallbackRead)
type NetPacket ¶
type NetPacket struct {
PacketSize int
Buffer []byte
OnRead CallbackRead
}
type Tcp ¶
type Tcp struct {
OnConnectResult CallbackConnect
OnDisconnect CallbackDisconnect
OnRead CallbackRead
// contains filtered or unexported fields
}
func NewTcp ¶
func NewTcp(onConnect CallbackConnect, onDisconnect CallbackDisconnect, onRead CallbackRead) *Tcp
Click to show internal directories.
Click to hide internal directories.