Esempio n. 1
0
 override internal void Prepare(int timeout, SocketEx ccSocket)
 {
     CheckDisposed();
     try
     {
         _listenSocket.ConnectTimeout = timeout;                 //Bind used ConnectTimeout value
         _listenSocket.Bind(ccSocket);
         _listenSocket.Listen(1);
     }
     catch (SocketException e)
     {
         CheckDisposed();
         CheckTimeoutException(e);
         throw;
     }
     catch
     {
         CheckDisposed();
         throw;
     }
 }