Documentation ¶
Index ¶
- type Listener
- type RPC
- type RPCClient
- type RPCServer
- type TCP
- func (t *TCP) Close()
- func (t *TCP) Connect(address string, port uint) bool
- func (t *TCP) ConnectionHandler(f func(), d func())
- func (t *TCP) DelayClose()
- func (t *TCP) GetLocalAddr() string
- func (t *TCP) GetRemoteAddr() string
- func (t *TCP) IsConnected() bool
- func (t *TCP) Peek(size int) ([]byte, error)
- func (t *TCP) Read(buffer []byte, size int) error
- func (t *TCP) Send(buf []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener is for server
func (*Listener) AsyncAccept ¶
AsyncAccept is accept on background
type RPCServer ¶
type RPCServer struct {
// contains filtered or unexported fields
}
func (*RPCServer) SetEventFunctor ¶
func (*RPCServer) StopServer ¶
func (r *RPCServer) StopServer()
type TCP ¶
type TCP struct {
// contains filtered or unexported fields
}
TCP is
func (*TCP) ConnectionHandler ¶
func (t *TCP) ConnectionHandler(f func(), d func())
ConnectionHandler is
Click to show internal directories.
Click to hide internal directories.