Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
func (*Conn) SetUserData ¶
func (c *Conn) SetUserData(data interface{})
type Server ¶
type Server struct { Addr string MaxConnNum int32 SendChanLimit int32 // the limit of packet send channel RecChanLimit int32 // the limit of packet receive channel ConnReadTimeout time.Duration // read timeout ConnWriteTimeout time.Duration // write timeout // msg parser AgentChanRPC *chanrpc.Server //handle rpc msg Processor network.Processor //handle json or pb MsgParser *network.MsgParser //handle read and write // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.