Exemplo n.º 1
0
 /// <summary>
 /// Sents a reply to the operation: 
 /// </summary>
 public static void SendGetAllInform(this IEnumerable<IClient> clients, GetAllInform packet)
 {
     packet.Lifetime = PacketLifetime.Manual;
      foreach(var client in clients)
     client.Send(packet);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sents a reply to the operation: 
 /// </summary>
 public static void SendGetAllInform(this IClient[] clients, GetAllInform packet)
 {
     packet.Lifetime = PacketLifetime.Manual;
      for (int i = 0; i < clients.Length; ++i)
     clients[i].Send(packet);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sents a reply to the operation: 
 /// </summary>
 public static void SendGetAllInform(this List<IClient> clients, GetAllInform packet)
 {
     packet.Lifetime = PacketLifetime.Manual;
      for (int i = 0; i < clients.Count; ++i)
     clients[i].Send(packet);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Sents a reply to the operation: 
 /// </summary>
 public static void SendGetAllInform(this IClient client, GetAllInform packet)
 {
     client.Send(packet);
 }