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