Example #1
0
// enet_host_broadcast
func (host *Host) Broadcast(channelID uint8, packet []byte, flags Flag) {
	C.enet_host_broadcast(host.host, C.enet_uint8(channelID), new_packet(packet, flags))
}
Example #2
0
File: host.go Project: boj/goenet
func (h *ENetHost) Broadcast(channelID int, packet *ENetPacket) {
	C.enet_host_broadcast((*C.ENetHost)(h), C.enet_uint8(channelID), (*C.ENetPacket)(packet))
}