Example #1
0
File: peer.go Project: boj/goenet
func (p *ENetPeer) DisconnectNow(data int) {
	C.enet_peer_disconnect_now((*C.ENetPeer)(p), C.enet_uint32(data))
}
Example #2
0
// enet_peer_disconnect_now
func (peer *Peer) DisconnectNow(data uint) {
	C.enet_peer_disconnect_now(peer.peer, C.enet_uint32(data))
}