Exemplo n.º 1
0
 public void Broadcast(byte channelID, ref Packet packet)
 {
     CheckCreated();
     packet.CheckCreated();
     Native.enet_host_broadcast(_host, channelID, packet.NativeData);
     packet.NativeData = null; // Broadcast automatically clears this.
 }
Exemplo n.º 2
0
        public void Broadcast(byte channelID, ref Packet packet)
        {
            ThrowIfNotCreated();

            packet.ThrowIfNotCreated();
            Native.enet_host_broadcast(nativeHost, channelID, packet.NativeData);
            packet.NativeData = IntPtr.Zero;
        }