Пример #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))
}
Пример #2
0
Файл: host.go Проект: boj/goenet
func (h *ENetHost) Broadcast(channelID int, packet *ENetPacket) {
	C.enet_host_broadcast((*C.ENetHost)(h), C.enet_uint8(channelID), (*C.ENetPacket)(packet))
}