Exemplo n.º 1
0
 public SocketWrapper(Socket socket)
 {
     _socketCancellationToken = new SocketCancellationToken();
     _socketFactory = new SocketFactory(_socketCancellationToken);
     _socket = socket;
     if (_socket.Connected)
         _stream = new NetworkStream(_socket);
 }
 public SocketWrapper(Socket socket)
 {
     _socketCancellationToken = new SocketCancellationToken();
     _socketFactory           = new SocketFactory(_socketCancellationToken);
     _socket = socket;
     if (_socket.Connected)
     {
         _stream = new NetworkStream(_socket);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="token"></param>
 public SocketCancellationTokenException(SocketCancellationToken token)
 {
     Token = token;
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="token"></param>
 public SocketFactory(SocketCancellationToken token)
 {
     Token = token;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="token"></param>
 public SocketCancellationTokenException(SocketCancellationToken token)
 {
     Token = token;
 }