public static void AddressCheckResponse(NatNegServer server, UDPPacket packet)
        {
            InitPacket initPacket = new InitPacket(packet.BytesRecieved);

            byte[] sendingBuffer = initPacket.CreateReplyPacket();
            server.Send(packet, sendingBuffer);
        }
Example #2
0
        public static void NatifyResponse(NatNegServer server, byte[] recv)
        {
            InitPacket initPacket = new InitPacket(recv);

            byte[] sendingBuffer = initPacket.CreateReplyPacket();
            server.SendAsync(server.Socket.RemoteEndPoint, sendingBuffer);
        }