Exemple #1
0
 public ClientSocket(ISocketEventListener socketEventListener)
 {
     _socketService = new SocketService(socketEventListener);
     _logger        = ObjectContainer.Resolve <ILoggerFactory>()
                      .Create(GetType()
                              .FullName);
 }
Exemple #2
0
 public ServerSocket(ISocketEventListener socketEventListener)
 {
     _socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
     _socketEventListener   = socketEventListener;
     _socketService         = new SocketService(socketEventListener);
     _newClientSocketSignal = new ManualResetEvent(false);
     _logger = ObjectContainer.Resolve <ILoggerFactory>()
               .Create(GetType()
                       .FullName);
 }