Array - Sockets - Clients

Irving Montalvo irving at moix.in
Fri Dec 13 15:53:24 PST 2013


Socket[ulong] clients;


-----------------------------------main()
ulong index = clients.length;
clients[index] = cli; //<-- Socket cli
send(tid, index)

---------------------------------spawned()
receive(
(ulong i) {
   clients[i].send('Hello concurrent'); // Error clients.length is 
zero
}
);
---------------------------------

Help me please!


More information about the Digitalmars-d-learn mailing list