Cheetah: Keeping track of multiple connected clients

aberba via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 16 09:01:49 PDT 2017


Does anyone know how to keep track of multiple clients in Cheetah 
socket lib such that one can directly message a client or 
broadcast to all connected clients.


Something like:

onMessage(... e)
{
...
    // send to all
    e.clients.broadcast (message);

...OR...
    // target a client
     e.clients[clientID].send(message);
}

Or any D lib with similar function.


More information about the Digitalmars-d-learn mailing list