Esempio n. 1
0
 override internal IAsyncResult BeginPrepare(int timeout,
                                             SocketEx ccSocket,
                                             AsyncCallback callback,
                                             object state)
 {
     CheckDisposed();
     try
     {
         _listenSocket.ConnectTimeout = timeout;                 //Bind used ConnectTimeout value
         return(_listenSocket.BeginBind(ccSocket, callback, state));
     }
     catch (SocketException e)
     {
         CheckDisposed();
         CheckTimeoutException(e);
         throw;
     }
     catch
     {
         CheckDisposed();
         throw;
     }
 }