Documentation ¶
Index ¶
- Constants
- func AcceptClient(listener net.Listener, acceptFn AcceptClientFn) error
- type AcceptClientFn
- type AcceptInterceptorFn
- type Conn
- func (c *Conn) Close()
- func (c *Conn) GetInt(k string) int
- func (c *Conn) GetRecvCipher() cipher.ICipher
- func (c *Conn) GetRemoteAddress() string
- func (c *Conn) GetSendCipher() cipher.ICipher
- func (c *Conn) GetString(k string) string
- func (c *Conn) Run(connectfn FnConnected, disconnectfn FnDisconnected, recvfn FnRecv)
- func (c *Conn) Send(p maplepacket.Packet)
- func (c *Conn) SetInt(k string, v int)
- func (c *Conn) SetString(k string, v string)
- type ConnEvent
- type ConnOptions
- type FnConnected
- type FnDisconnected
- type FnRecv
- type IConn
Constants ¶
View Source
const ( CEConnected CERecv CEDisconnected )
Variables ¶
This section is empty.
Functions ¶
func AcceptClient ¶
func AcceptClient(listener net.Listener, acceptFn AcceptClientFn) error
AcceptClient -
Types ¶
type AcceptClientFn ¶
AcceptClientFn return a IConn from a net.Conn Return error if do not accept the connection
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) Run ¶
func (c *Conn) Run(connectfn FnConnected, disconnectfn FnDisconnected, recvfn FnRecv)
Run -
func (*Conn) Send ¶
func (c *Conn) Send(p maplepacket.Packet)
type ConnOptions ¶
type ConnOptions struct {
HeaderSize int
}
type FnConnected ¶
type FnDisconnected ¶
Click to show internal directories.
Click to hide internal directories.