示例#1
0
        public void SendReliableData(iPacket packet, NetConnection recip)
        {
            NetOutgoingMessage sendMsg = server.CreateMessage();

            sendMsg = packet.Pack(sendMsg);
            server.SendMessage(sendMsg, recip, NetDeliveryMethod.ReliableUnordered);
        }
示例#2
0
        public void SendUnconnectedMessage(iPacket packet, IPEndPoint receiver)
        {
            NetOutgoingMessage sendMsg = server.CreateMessage();

            sendMsg = packet.Pack(sendMsg);
            server.SendUnconnectedMessage(sendMsg, receiver);
        }
        public void SendReliableData(iPacket packet)
        {
            NetOutgoingMessage sendMsg = client.CreateMessage();

            sendMsg = packet.Pack(sendMsg);
            client.SendMessage(sendMsg, NetDeliveryMethod.ReliableUnordered);
        }
示例#4
0
 public void SendUnreliableData(iPacket packet, NetConnection recip)
 {
     NetOutgoingMessage sendMsg = server.CreateMessage();
     sendMsg = packet.Pack(sendMsg);
     server.SendMessage(sendMsg, recip, NetDeliveryMethod.Unreliable);
 }
示例#5
0
 public void SendUnconnectedMessage(iPacket packet, IPEndPoint receiver)
 {
     NetOutgoingMessage sendMsg = server.CreateMessage();
     sendMsg = packet.Pack(sendMsg);
     server.SendUnconnectedMessage(sendMsg, receiver);
 }
 public void SendUnreliableData(iPacket packet)
 {
     NetOutgoingMessage sendMsg = client.CreateMessage();
     sendMsg = packet.Pack(sendMsg);
     client.SendMessage(sendMsg, NetDeliveryMethod.Unreliable);
 }