Documentation ¶
Index ¶
- Variables
- func NewClient(server agent.Server, conn *websocket.Conn, ip string) agent.Client
- func NewServer(agent *agent.Agent) agent.Server
- type Client
- func (c *Client) Close()
- func (c *Client) Closed() bool
- func (c *Client) Destroy()
- func (c *Client) Id() string
- func (c *Client) Log() *logger.Helper
- func (c *Client) Meta() *agent.Meta
- func (c *Client) Read() (*codec.ClientHead, []byte, error)
- func (c *Client) Server() agent.Server
- func (c *Client) SetAuthState(state bool)
- func (c *Client) Write(b []byte)
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultMaxHeaderBytes = 1024 // 默认Header大小
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.