// // 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()); }
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); }