public void Add(Datagram datagram) { AddToDatagramList(datagram); AddToDGV(); }
// TODO: public void Update(Datagram datagram) { }
protected virtual void AnalyzeIncomeConfigDatagram(Datagram datagram) { }
protected virtual void AnalyzeIncomeCommandDatagram(Datagram datagram) { }
protected virtual void AnalyzeIncomeSystemDatagram(Datagram datagram) { }
protected virtual void AnalyzeIncomeTextDatagram(Datagram datagram) { }
protected void SendDatagramToEveryOnlineUsers(Datagram datagram) { Users.Where(user => user.IsOnline).ToList().ForEach(user => AddToSendingPool(new Packet(user, datagram))); }
public Packet(User user, Datagram datagram) : this(user.Ip, datagram) { }
public Packet(IPAddress recipientIp, Datagram datagram) { Id = HolkanBehaviorForm.CreateId(); RecipientIp = recipientIp; Datagram = datagram; }