Ejemplo n.º 1
0
 void ISocketClientEventListener.OnConnectionEstablished(ITcpConnectionInfo connectionInfo)
 {
     if (_eventListener != null)
     {
         _eventListener.OnConnectionEstablished(connectionInfo);
     }
 }
Ejemplo n.º 2
0
 private void OnConnectionEstablished(ITcpConnection connection)
 {
     ConnectionStatus = TcpConnectionStatus.ConnectionEstablished;
     _logger.InfoFormat("TCP connection established: [remoteEndPoint:{0}, localEndPoint:{1}, connectionId:{2:B}].", connection.RemoteEndPoint, connection.LocalEndPoint, connection.ConnectionId);
     _startWaitHandle.Set();
     if (_eventListener != null)
     {
         _eventListener.OnConnectionEstablished(connection);
     }
 }