Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotInit = 0 Inited = 1 Closed = 2 )
View Source
const ( MaxPacketSize = 65507 DefaultPacketSize = 1024 )
Variables ¶
View Source
var ( ChanFullError = errors.New("write chan full") InitError = errors.New("fail to init") )
Functions ¶
This section is empty.
Types ¶
type AsyncClient ¶
type AsyncClient struct { ServerAddr string BufferSize int MaxTry int //最多尝试次数 Processor processor.Processor // contains filtered or unexported fields }
func (*AsyncClient) Close ¶
func (client *AsyncClient) Close()
func (*AsyncClient) CloseAndWait ¶
func (client *AsyncClient) CloseAndWait()
func (*AsyncClient) Destroy ¶
func (client *AsyncClient) Destroy()
func (*AsyncClient) Start ¶
func (client *AsyncClient) Start() error
func (*AsyncClient) WriteMsg ¶
func (client *AsyncClient) WriteMsg(msg interface{}) error
type BroadcastClient ¶
广播客户端 广播的服务端其实就是普通的服务端
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
无连接的一次性的client,用于同步处理
type ReceivedContext ¶
Click to show internal directories.
Click to hide internal directories.