Documentation ¶
Index ¶
- type Agent
- type Conn
- type ConnSet
- type KCPClient
- type KCPConn
- func (kcpConn *KCPConn) Close()
- func (kcpConn *KCPConn) Destroy()
- func (kcpConn *KCPConn) LocalAddr() net.Addr
- func (kcpConn *KCPConn) Read(b []byte) (int, error)
- func (kcpConn *KCPConn) ReadMsg() ([]byte, error)
- func (kcpConn *KCPConn) RemoteAddr() net.Addr
- func (kcpConn *KCPConn) Write(b []byte)
- func (kcpConn *KCPConn) WriteMsg(args ...[]byte) error
- type KCPConnSet
- type KCPServer
- type MsgParser
- func (p *MsgParser) Read(conn *TCPConn) ([]byte, error)
- func (p *MsgParser) ReadKcp(conn *KCPConn) ([]byte, error)
- func (p *MsgParser) SetByteOrder(littleEndian bool)
- func (p *MsgParser) SetMsgLen(lenMsgLen int, minMsgLen uint32, maxMsgLen uint32)
- func (p *MsgParser) Write(conn *TCPConn, args ...[]byte) error
- func (p *MsgParser) WriteKcp(conn *KCPConn, args ...[]byte) error
- type Processor
- type TCPClient
- type TCPConn
- func (tcpConn *TCPConn) Close()
- func (tcpConn *TCPConn) Destroy()
- func (tcpConn *TCPConn) LocalAddr() net.Addr
- func (tcpConn *TCPConn) Read(b []byte) (int, error)
- func (tcpConn *TCPConn) ReadMsg() ([]byte, error)
- func (tcpConn *TCPConn) RemoteAddr() net.Addr
- func (tcpConn *TCPConn) Write(b []byte)
- func (tcpConn *TCPConn) WriteMsg(args ...[]byte) error
- type TCPServer
- type WSClient
- type WSConn
- type WSHandler
- type WSServer
- type WebsocketConnSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KCPClient ¶
type KCPConn ¶
func (*KCPConn) RemoteAddr ¶
type KCPConnSet ¶
type KCPConnSet map[*kcp.UDPSession]struct{}
type KCPServer ¶
type MsgParser ¶
type MsgParser struct {
// contains filtered or unexported fields
}
-------------- | len | data | --------------
func NewMsgParser ¶
func NewMsgParser() *MsgParser
func (*MsgParser) SetByteOrder ¶
SetByteOrder It's dangerous to call the method on reading or writing
type TCPClient ¶
type TCPConn ¶
func (*TCPConn) RemoteAddr ¶
type TCPServer ¶
type WSClient ¶
type WSConn ¶
func (*WSConn) RemoteAddr ¶
type WSServer ¶
type WebsocketConnSet ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.