示例#1
0
        private void HandleRawWhoComplete(object sender, EventArgs ev)
        {
            Debug.Print("Server.HandleRawWhoComplete");
            _protocolHandler.RestoreHandlers( );

            OnWhoComplete(((WhoHandler)sender).Target, _whoResponses);

            _whoResponseParser = null;
            _whoResponses      = null;
        }
示例#2
0
        // WhoHandler

        private void HandleRawWhoComplete(object sender, EventArgs ev)
        {
            Debug.Print("Server.HandleRawWhoComplete");
            _protocolHandler.EndCapture("Server.HandleRplWhoReply running WhoHandler");

            OnWhoComplete(((WhoHandler)sender).Target, _whoResponses);

            _whoResponseParser = null;
            _whoResponses      = null;
        }
示例#3
0
        private void HandleRawWhoMessage(object sender, MessageEventArgs ev)
        {
            if (null == _whoResponseParser)
            {
                _whoResponseParser = new WhoResponseParser {
                    ProtocolHandler = _protocolHandler,
                    Server          = this,
                };
            }
            if (null == _whoResponses)
            {
                _whoResponses = new Collection <WhoResponse>( );
            }

            if (ev.Message.Verb.Equals("352"))
            {
                try {
                    _whoResponses.Add(_whoResponseParser.ParseResponse(ev.Message));
                }
                catch (Exception e) {
                    Debug.Print("Server.HandleRawWhoMessage: caught exception trying to parse 352 message:\n{0}", e);
                }
            }
        }
示例#4
0
        private void HandleRawWhoMessage( object sender, MessageEventArgs ev )
        {
            if ( null == _whoResponseParser ) {
                _whoResponseParser = new WhoResponseParser {
                    ProtocolHandler = _protocolHandler,
                    Server = this,
                };
            }
            if ( null == _whoResponses ) {
                _whoResponses = new Collection<WhoResponse>( );
            }

            if ( ev.Message.Verb.Equals( "352" ) ) {
                try {
                    _whoResponses.Add( _whoResponseParser.ParseResponse( ev.Message ) );
                }
                catch ( Exception e ) {
                    Debug.Print( "Server.HandleRawWhoMessage: caught exception trying to parse 352 message:\n{0}", e );
                }
            }
        }
示例#5
0
        // WhoHandler
        private void HandleRawWhoComplete( object sender, EventArgs ev )
        {
            Debug.Print( "Server.HandleRawWhoComplete" );
            _protocolHandler.EndCapture( "Server.HandleRplWhoReply running WhoHandler" );

            OnWhoComplete( ( (WhoHandler) sender ).Target, _whoResponses );

            _whoResponseParser = null;
            _whoResponses = null;
        }
示例#6
0
        private void HandleRawWhoComplete( object sender, EventArgs ev )
        {
            Debug.Print( "Server.HandleRawWhoComplete" );
            _protocolHandler.RestoreHandlers( );

            OnWhoComplete( ( (WhoHandler) sender ).Target, _whoResponses );

            _whoResponseParser = null;
            _whoResponses = null;
        }