Esempio 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.
 }
Esempio 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;
        }