Пример #1
0
 public void Add(Datagram datagram)
 {
     AddToDatagramList(datagram);
     AddToDGV();
 }
Пример #2
0
 // TODO:
 public void Update(Datagram datagram)
 {
 }
Пример #3
0
 protected virtual void AnalyzeIncomeConfigDatagram(Datagram datagram)
 {
 }
Пример #4
0
 protected virtual void AnalyzeIncomeCommandDatagram(Datagram datagram)
 {
 }
Пример #5
0
 protected virtual void AnalyzeIncomeSystemDatagram(Datagram datagram)
 {
 }
Пример #6
0
 protected virtual void AnalyzeIncomeTextDatagram(Datagram datagram)
 {
 }
Пример #7
0
 protected void SendDatagramToEveryOnlineUsers(Datagram datagram)
 {
     Users.Where(user => user.IsOnline).ToList().ForEach(user => AddToSendingPool(new Packet(user, datagram)));
 }
Пример #8
0
 public Packet(User user, Datagram datagram) : this(user.Ip, datagram)
 {
 }
Пример #9
0
 public Packet(IPAddress recipientIp, Datagram datagram)
 {
     Id          = HolkanBehaviorForm.CreateId();
     RecipientIp = recipientIp;
     Datagram    = datagram;
 }