Beispiel #1
0
 public override void Dispose()
 {
     if (_disposed) return;
     if (_statsDataSocket != null) _statsDataSocket.Dispose();
     _statsDataSocket = null;
     _disposed = true;
 }
Beispiel #2
0
 private void ConnectCompleted(object sender, SocketAsyncEventArgs args)
 {
     if (args.SocketError == SocketError.Success)
     {
         Log.Write("Connection established to statistics server");
         _statsDataSocket = new AWTCPSocket(args.ConnectSocket, StatsMessageHandler);
         BasicInfoSent = false;
     }
     _isConnecting = false;
 }