Ejemplo n.º 1
0
 public Contact(string host, string ip, ComunicationState state, EndPoint endPoint)
 {
     this.Host           = host;
     this.IP             = ip;
     this.State          = state;
     this.RemoteEndPoint = endPoint;
 }
Ejemplo n.º 2
0
        public static void SetComunicationState(string ip, ComunicationState state)
        {
            Contact contact = CurrentContactList.Find(x => string.Equals(x.IP, ip));

            if (contact != null)
            {
                contact.State = state;
            }
        }