Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ConnectWait ¶
func (c *Client) ConnectWait()
type ClientConn ¶
type ClientConn struct {
// contains filtered or unexported fields
}
func NewClientConn ¶
func NewClientConn(remoteAddr, key string, index int, parentWG *sync.WaitGroup) *ClientConn
func (*ClientConn) Close ¶
func (cc *ClientConn) Close()
func (*ClientConn) IsConnected ¶
func (cc *ClientConn) IsConnected() bool
func (*ClientConn) Write ¶
func (cc *ClientConn) Write(data []byte)
func (*ClientConn) WriteNow ¶
func (cc *ClientConn) WriteNow(data []byte) error
type ServerConn ¶
type ServerConn struct {
// contains filtered or unexported fields
}
func NewServerConn ¶
func NewServerConn(conn *net.TCPConn, key string, handler ServerHandler) *ServerConn
type ServerHandler ¶
type ServerHandler interface {
OnData([]byte)
}
Click to show internal directories.
Click to hide internal directories.