Documentation ¶
Index ¶
- func MkEpoll() (*epoll, error)
- type Agent
- type Conn
- type ConnSet
- type MsgParser
- type Processor
- type TCPClient
- type TCPConn
- func (tcpConn *TCPConn) BroadCast(msg interface{})
- 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 WMessage
- type WSClient
- type WSConn
- type WSServer
- type WebsocketConnSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 TCPClient ¶
type TCPConn ¶
func (*TCPConn) RemoteAddr ¶
type TCPServer ¶
type WMessage ¶
type WMessage struct { Payload []byte Prepared *websocket.PreparedMessage }
type WSClient ¶
type WSConn ¶
func (*WSConn) RemoteAddr ¶
type WSServer ¶
type WSServer struct { Addr string MaxMsgLen uint32 HTTPTimeout time.Duration NewAgent func(*WSConn) Agent // contains filtered or unexported fields }
type WebsocketConnSet ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.