Documentation ¶
Index ¶
- Constants
- func Connect(addr string, timeout int32, f func(err error, sock *Socket))
- type ConnectQ
- type Server
- type Socket
- func (self *Socket) Close()
- func (self *Socket) HeartBeat(ms uint32)
- func (self *Socket) OnClose(f func())
- func (self *Socket) OnData(f func(buf []byte))
- func (self *Socket) RemoteAddr() string
- func (self *Socket) RemoteIP() string
- func (self *Socket) RemotePort() int32
- func (self *Socket) Send(buf []byte)
- func (self *Socket) TcpNoDelay(b bool)
Constants ¶
View Source
const ( C_read_buf_size = 4096 C_max_write_size = 4096 C_qw_max_size = 10000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectQ ¶
type ConnectQ struct {
// contains filtered or unexported fields
}
func NewConnectQ ¶
func NewConnectQ() *ConnectQ
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func CreateServer ¶
func CreateServer() *Server
func (*Server) OnConnection ¶
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
func (*Socket) RemoteAddr ¶
func (*Socket) RemotePort ¶
func (*Socket) TcpNoDelay ¶
Click to show internal directories.
Click to hide internal directories.