Example #1
0
 /// <summary>
 /// Handles a connected packet received from the remote host
 /// </summary>
 /// <param name="connected"></param>
 private void HandleConnected(UdpConnected connected)
 {
     if (connected.salt != salt) // salt mismatch, could be spoofed sender
     {
         Log.Write("UdpClient, invalid salt received in solution packet");
         return;
     }
     if (!SetConnectionState(ConnectionState.Connected, ConnectionState.AwaitingConnected))
     {
         return;
     }
     remoteEndPoint = new IPEndPoint(((IPEndPoint)remoteEndPoint).Address, connected.port);
     retryCount     = 0;
     HandleConnected(ConnectStatus.Success);
 }
Example #2
0
 private void HandleConnected(UdpConnected m)
 {
     throw new NotImplementedException();
 }