コード例 #1
0
ファイル: GameClient.cs プロジェクト: fuding/Coolmemes
        internal void StartConnection()
        {
            if (Connection == null)
            {
                return;
            }

            (Connection.parser as InitialPacketParser).PolicyRequest       += PolicyRequest;
            (Connection.parser as InitialPacketParser).SwitchParserRequest += SwitchParserRequest;

            Connection.startPacketProcessing();
        }
コード例 #2
0
        public void StartConnection()
        {
            if (_connection == null)
            {
                return;
            }

            PingCount = 0;

            (_connection.parser as InitialPacketParser).PolicyRequest       += PolicyRequest;
            (_connection.parser as InitialPacketParser).SwitchParserRequest += SwitchParserRequest;
            _connection.startPacketProcessing();
        }
コード例 #3
0
        /// <summary>
        /// Starts the connection.
        /// </summary>
        public void StartConnection()
        {
            if (_connection == null)
            {
                return;
            }

            TimePingedReceived = DateTime.Now;

            (_connection.parser as InitialPacketParser).PolicyRequest       += PolicyRequest;
            (_connection.parser as InitialPacketParser).SwitchParserRequest += SwitchParserRequest;
            _connection.startPacketProcessing();
        }
コード例 #4
0
        internal void StartConnection()
        {
            if (Connection == null)
            {
                return;
            }

            TimePingedReceived = DateTime.Now;

            (Connection.parser as InitialPacketParser).PolicyRequest       += new InitialPacketParser.NoParamDelegate(PolicyRequest);
            (Connection.parser as InitialPacketParser).SwitchParserRequest += new InitialPacketParser.NoParamDelegate(SwitchParserRequest);

            Connection.startPacketProcessing();
        }