Exemple #1
0
func (p *ENetPeer) Disconnect(data int) {
	C.enet_peer_disconnect((*C.ENetPeer)(p), C.enet_uint32(data))
}
Exemple #2
0
func (p *Peer) Disconnect(reason uint32) {
	delete(peers, p.cPeer)
	C.enet_peer_disconnect(p.cPeer, C.enet_uint32(reason))
}
Exemple #3
0
// enet_peer_disconnect
func (peer *Peer) Disconnect(data uint) {
	C.enet_peer_disconnect(peer.peer, C.enet_uint32(data))
}