Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetPeer ¶
func NewNetPeer ¶
func NewNetPeer(conn net.Conn, gs rua.GameServer) *NetPeer
Create a peer with a connection of `net.Conn`. If `timeout` == 0 (in ms), there is no timeout.
func (*NetPeer) WithBufSize ¶
func (*NetPeer) WithReadTimeout ¶
func (*NetPeer) WithTimeout ¶
Set the readTimeout and writeTimeout to the specified ms.
func (*NetPeer) WithWriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.