コード例 #1
0
ファイル: NetworkClientTcp.cs プロジェクト: dev4side/Core
        //
        // WORKING FUNCTIONS
        //


        private void HandleConnectedClient(object sender, ConnectedEventArgs <IPEndPoint> args)
        {
            lock (_syncLock)
            {
                if (!_connected)
                {
                    //stop connection timer..
                    _poller.Dispose();
                    _poller = null;

                    //_loc = _communication.Local; //todo
                    _connected = true;

                    OnConnect();
                }
            }
            //debug..
            Console.WriteLine("KeepAliveClient: connected to: " + args.remote.ToString());
        }
コード例 #2
0
 private void HandleConnectedClient(object sender, ConnectedEventArgs <IPEndPoint> args)
 {
     //TODO log..
     //Log.Debug("{1}: Network connection with {0} has been established", args.remote.ToString(), this.GetType().ToString());
     OnConnect(sender as CommunicationChannelTcp);
 }