public PeerProcessor() { _b = Bridge.GetBridge(); _owner = new ResponseSystemAccount(); _peerList = new List <Person>(); _selectedPeer = new Person(); //_pendingPeerRequests = new Dictionary<uint, RequestPeers.SetOption>(); }
private void ProcessSystemAccount(RSProtoBuffSSHMsg msg) { ResponseSystemAccount response = new ResponseSystemAccount(); Exception e; if (RSProtoBuf.Deserialize <ResponseSystemAccount>(msg.ProtoBuffMsg, out response, out e)) { _b.PeerProcessor.SetOwnID(response); } else { System.Diagnostics.Debug.WriteLine("ProcessSystemstatus: error deserializing " + e.Message); } }
internal void SetOwnID(ResponseSystemAccount msg) { //_owner.gpg_id = msg.pgp_id; //_owner.locations[0] = msg.location; //_owner.name = msg.pgp_name; //_owner.relation = Person.Relationship.YOURSELF; _owner = msg; _b.GUI.Text = "RetroShare SSH Client by sehraf - " + _owner.pgp_name + "(" + _owner.pgp_id + ") ";// +l.location + " (" + l.ssl_id + ")"; if (_b.ChatProcessor.Nick == "" || _b.ChatProcessor.Nick == null) { string name = _owner.pgp_name.Trim(); _b.ChatProcessor.SetNick(name + " (nogui/ssh)"); } }