Documentation ¶
Index ¶
- type Agent
- type Conn
- type ConnSet
- type MsgParser
- type PayloadData
- 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) ReliableWriteMsg(args ...[]byte) error
- func (tcpConn *TCPConn) RemoteAddr() net.Addr
- func (tcpConn *TCPConn) UnreliableWriteMsg(args ...[]byte) error
- func (tcpConn *TCPConn) Write(b []byte)
- type TCPServer
- type UDPAgentSet
- type UDPConn
- func (udpConn *UDPConn) Close()
- func (udpConn *UDPConn) Destroy()
- func (udpConn *UDPConn) LocalAddr() net.Addr
- func (udpConn *UDPConn) ReadMsg() ([]byte, error)
- func (udpConn *UDPConn) ReliableWriteMsg(args ...[]byte) error
- func (udpConn *UDPConn) RemoteAddr() net.Addr
- func (udpConn *UDPConn) UnreliableWriteMsg(args ...[]byte) error
- type UDPServer
- type WSClient
- type WSConn
- func (wsConn *WSConn) Close()
- func (wsConn *WSConn) Destroy()
- func (wsConn *WSConn) LocalAddr() net.Addr
- func (wsConn *WSConn) ReadMsg() ([]byte, error)
- func (wsConn *WSConn) ReliableWriteMsg(args ...[]byte) error
- func (wsConn *WSConn) RemoteAddr() net.Addr
- func (wsConn *WSConn) UnreliableWriteMsg(args ...[]byte) error
- type WSHandler
- type WSServer
- type WebsocketConnSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgParser ¶
type MsgParser struct {
// contains filtered or unexported fields
}
-------------- | len | data | --------------
func NewMsgParser ¶
func NewMsgParser() *MsgParser
func (*MsgParser) SetByteOrder ¶
It's dangerous to call the method on reading or writing
type PayloadData ¶
type PayloadData struct {
// contains filtered or unexported fields
}
type TCPClient ¶
type TCPConn ¶
func (*TCPConn) ReliableWriteMsg ¶
func (*TCPConn) RemoteAddr ¶
func (*TCPConn) UnreliableWriteMsg ¶
type TCPServer ¶
type UDPAgentSet ¶
type UDPAgentSet map[Agent]struct{}
type UDPConn ¶
type UDPConn struct {
// contains filtered or unexported fields
}
func (*UDPConn) ReliableWriteMsg ¶
func (*UDPConn) RemoteAddr ¶
func (*UDPConn) UnreliableWriteMsg ¶
type UDPServer ¶
type WSClient ¶
type WSConn ¶
func (*WSConn) ReliableWriteMsg ¶
args must not be modified by the others goroutines
func (*WSConn) RemoteAddr ¶
func (*WSConn) UnreliableWriteMsg ¶
type WSServer ¶
type WebsocketConnSet ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.