Ejemplo n.º 1
0
        private void ConnectionEstablished( object sender, ConnectionEstablishedEventArgs ev )
        {
            Debug.Print( "NetworkWrapper.ConnectionEstablished" );
            Debug.Print( "+ remote end point: {0}", ev.Server.ServerEndPoint );

            OnConnectAttemptSucceeded( );
        }
Ejemplo n.º 2
0
        private void ConnectionEstablished( object sender, ConnectionEstablishedEventArgs ev ) {
            Console.WriteLine( "ConsoleHarness: ConnectionEstablished:" );
            Console.WriteLine( "+ remote end point: {0}", ev.Server.ServerEndPoint );
            Console.WriteLine( );

            _serverConnector = null;

            _server = ev.Server;
            _protocolHandler = _server.ProtocolHandler;
            _selfUser = _server.SelfUser;

            _selfUser.Error += HandleError;
            _selfUser.Quit += HandleSelfQuit;
            _server.Registered += HandleRegistered;
            _server.MotdComplete += HandleMotdComplete;

            _connected = true;
        }
Ejemplo n.º 3
0
        private void HandleConnectionEstablished( object sender, ConnectionEstablishedEventArgs ev )
        {
            Debug.Print( "ServerWrapper.HandleConnectionEstablished" );
            Debug.Print( "+ remote end point: {0}", ev.Server.ServerEndPoint );

            Server = ev.Server;
            IsConnected = true;

            OnConnectSucceeded( );
        }