public void SendReliableData(iPacket packet, NetConnection recip) { NetOutgoingMessage sendMsg = server.CreateMessage(); sendMsg = packet.Pack(sendMsg); server.SendMessage(sendMsg, recip, NetDeliveryMethod.ReliableUnordered); }
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); }
public void SendUnreliableData(iPacket packet, NetConnection recip) { NetOutgoingMessage sendMsg = server.CreateMessage(); sendMsg = packet.Pack(sendMsg); server.SendMessage(sendMsg, recip, NetDeliveryMethod.Unreliable); }
public void SendUnreliableData(iPacket packet) { NetOutgoingMessage sendMsg = client.CreateMessage(); sendMsg = packet.Pack(sendMsg); client.SendMessage(sendMsg, NetDeliveryMethod.Unreliable); }