Sockets issue

James Dennett jdennett at acm.org
Tue Jan 15 10:33:44 PST 2008


BCS wrote:
> okibi wrote:
>>> while (true)
>>> {
>>>     Socket clientSocket = soc.accept();
> 
> if it runs to here then you have accepted a connection, if it gets here 
> a second time, you have accepted a second connection.

Maybe it's worth noting that it takes only one connection
at a time unlike most real servers which handle concurrent
connections.

-- James



More information about the Digitalmars-d-learn mailing list