示例#1
0
文件: host.go 项目: deft-code/go-enet
// 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))
}