Documentation ¶
Index ¶
- Constants
- type BeanClientRegister
- type BeanClientRegisterRet
- type P2PConnection
- func (p2p *P2PConnection) BroadMessage(code int32, msg string)
- func (p2p *P2PConnection) ConnectPublic()
- func (p2p *P2PConnection) FetchMyPublicAddress()
- func (p2p *P2PConnection) FetchOtherAddressInGroup()
- func (p2p *P2PConnection) GetOtherConnection() *udpex.UDPConnection
- func (p2p *P2PConnection) Init(publicServer string)
- func (p2p *P2PConnection) OnMessage(msg string)
- func (t *P2PConnection) OnRecv(conn *udpex.UDPConnection, code int32, data []byte)
- func (t *P2PConnection) OnSentEmpty()
- func (t *P2PConnection) OnSentSuccess(code int32)
- type P2PGlobalServer
- func (p2ps *P2PGlobalServer) Init(listenaddr string)
- func (t *P2PGlobalServer) OnClientDead(conn *udpex.UDPConnection)
- func (t *P2PGlobalServer) OnRecv(conn *udpex.UDPConnection, code int32, data []byte)
- func (t *P2PGlobalServer) OnSentEmpty()
- func (t *P2PGlobalServer) OnSentSuccess(code int32)
- func (t *P2PGlobalServer) Register(conn *udpex.UDPConnection, reg *BeanClientRegister)
- type Pingpng
- type RemoteClient
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeanClientRegister ¶
type BeanClientRegisterRet ¶
type P2PConnection ¶
type P2PConnection struct {
// contains filtered or unexported fields
}
func (*P2PConnection) BroadMessage ¶
func (p2p *P2PConnection) BroadMessage(code int32, msg string)
func (*P2PConnection) ConnectPublic ¶
func (p2p *P2PConnection) ConnectPublic()
func (*P2PConnection) FetchMyPublicAddress ¶
func (p2p *P2PConnection) FetchMyPublicAddress()
func (*P2PConnection) FetchOtherAddressInGroup ¶
func (p2p *P2PConnection) FetchOtherAddressInGroup()
func (*P2PConnection) GetOtherConnection ¶
func (p2p *P2PConnection) GetOtherConnection() *udpex.UDPConnection
func (*P2PConnection) Init ¶
func (p2p *P2PConnection) Init(publicServer string)
func (*P2PConnection) OnMessage ¶
func (p2p *P2PConnection) OnMessage(msg string)
func (*P2PConnection) OnRecv ¶
func (t *P2PConnection) OnRecv(conn *udpex.UDPConnection, code int32, data []byte)
type P2PGlobalServer ¶
func (*P2PGlobalServer) Init ¶
func (p2ps *P2PGlobalServer) Init(listenaddr string)
func (*P2PGlobalServer) OnClientDead ¶
func (t *P2PGlobalServer) OnClientDead(conn *udpex.UDPConnection)
链接断开
func (*P2PGlobalServer) OnRecv ¶
func (t *P2PGlobalServer) OnRecv(conn *udpex.UDPConnection, code int32, data []byte)
func (*P2PGlobalServer) Register ¶
func (t *P2PGlobalServer) Register(conn *udpex.UDPConnection, reg *BeanClientRegister)
type RemoteClient ¶
type RemoteClient struct {
// contains filtered or unexported fields
}
func (*RemoteClient) OnRecv ¶
func (t *RemoteClient) OnRecv(conn *udpex.UDPConnection, code int32, data []byte)
Click to show internal directories.
Click to hide internal directories.