Esempio 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);
     }
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="token"></param>
 public SocketCancellationTokenException(SocketCancellationToken token)
 {
     Token = token;
 }
Esempio 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;
 }