> For the complete documentation index, see [llms.txt](https://runninghorse.gitbook.io/gdnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://runninghorse.gitbook.io/gdnet/net.scene/multicast-ilist-less-than-player-greater-than-clients-bool-reliable-rpcmodel-model.md).

# Multicast(IList\<Player> clients, bool reliable, RPCModel model)

```
    public virtual void Multicast(IList<Player> clients, bool reliable, RPCModel model)
    {
        for (int i = 0; i < clients.Count; i++)
        {
            var client = clients[i];
            if (client == null)
                continue;
            if (client.CloseSend)
                continue;
            if (!reliable)
            {
                if (client.udpRPCModels.Count >= ushort.MaxValue)
                {
                    Debug.LogError($"[{client.UserID}]数据缓存列表超出限制!");
                    return;
                }
                client.udpRPCModels.Enqueue(model);
            }
            else
            {
                if (client.tcpRPCModels.Count >= ushort.MaxValue)
                {
                    Debug.LogError($"[{client.UserID}]数据缓存列表超出限制!");
                    return;
                }
                client.tcpRPCModels.Enqueue(model);
            }
        }
    }
```
