Sockets issue

okibi okibi at ratedo.com
Tue Jan 15 10:41:10 PST 2008


James Dennett Wrote:

> 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
> 

Client side will make a connection, send a string, and disconnect prior to another connection being made.

Anyways, the line break idea didn't work.


More information about the Digitalmars-d-learn mailing list