Example #1
0
File: peer.go Project: boj/goenet
func (p *ENetPeer) Disconnect(data int) {
	C.enet_peer_disconnect((*C.ENetPeer)(p), C.enet_uint32(data))
}
Example #2
0
File: peer.go Project: hycxa/waiter
func (p *Peer) Disconnect(reason uint32) {
	delete(peers, p.cPeer)
	C.enet_peer_disconnect(p.cPeer, C.enet_uint32(reason))
}
Example #3
0
// enet_peer_disconnect
func (peer *Peer) Disconnect(data uint) {
	C.enet_peer_disconnect(peer.peer, C.enet_uint32(data))
}