Documentation
¶
Index ¶
- func NewTcpAgent(addr string, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) *tcpAgent
- func NewTcpDialer(name, addr string, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) kiwi.IDialer
- func NewTcpListener(addr string, onConn func(conn net.Conn)) kiwi.IListener
- func NewUdpAgent(addr string, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) *udpAgent
- func NewUdpDialer(name, addr string, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) kiwi.IDialer
- func NewUdpListener(addr string, onConn func(conn net.Conn)) kiwi.IListener
- func NewWebAgent(addr string, msgType int, receiver kiwi.FnAgentBytes, ...) *webAgent
- func NewWebDialer(url string, header http.Header, msgType int, receiver kiwi.FnAgentBytes, ...) kiwi.IDialer
- func NewWebListener(onConn func(conn *websocket.Conn), opts ...WebOption) kiwi.IListener
- type WebOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTcpAgent ¶
func NewTcpAgent(addr string, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) *tcpAgent
NewTcpAgent receiver接收字节如果使用异步方式需要copy一份,否则数据会被覆盖
func NewTcpDialer ¶
func NewTcpDialer(name, addr string, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) kiwi.IDialer
func NewUdpAgent ¶
func NewUdpAgent(addr string, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) *udpAgent
func NewUdpDialer ¶
func NewUdpDialer(name, addr string, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) kiwi.IDialer
func NewWebAgent ¶
func NewWebAgent(addr string, msgType int, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) *webAgent
func NewWebDialer ¶
func NewWebDialer(url string, header http.Header, msgType int, receiver kiwi.FnAgentBytes, options ...kiwi.AgentOption) kiwi.IDialer
Types ¶
Click to show internal directories.
Click to hide internal directories.