SuperSocket.ClientEngine.TcpClientSession.IsIgnorableSocketError C# (CSharp) 메소드

IsIgnorableSocketError() 보호된 메소드

protected IsIgnorableSocketError ( int errorCode ) : bool
errorCode int
리턴 bool
        protected bool IsIgnorableSocketError(int errorCode)
        {
            //SocketError.Shutdown = 10058
            //SocketError.ConnectionAborted = 10053
            //SocketError.ConnectionReset = 10054
            //SocketError.OperationAborted = 995
            if (errorCode == 10058 || errorCode == 10053 || errorCode == 10054 || errorCode == 995)
                return true;

            return false;
        }