Пример #1
0
        private static void ReadCallback(IAsyncResult ar)
        {
            try {
                TLSSession session = (TLSSession)ar.AsyncState;

                int cbRead = session._stm.EndRead(ar);
                session.ProcessInput(cbRead);
            }
            catch (ObjectDisposedException) {
                ; // Ignore this error
            }
        }
Пример #2
0
        private static void ReadCallback(IAsyncResult ar)
        {
            try {
                TLSSession session = (TLSSession)ar.AsyncState;

                int cbRead = session._tcpStream.EndRead(ar);
                session.ProcessInput(cbRead);
            }
            catch (System.IO.IOException) {
                ; // Ignore this error - but I don't know if that is correct.
            }
            catch (ObjectDisposedException) {
                ; // Ignore this error
            }
        }