Socket.send

mta`chrono chrono at mta-international.net
Mon Sep 26 13:35:36 PDT 2011


Am 26.09.2011 18:09, schrieb Andrea Fontana:
> I'm working on a simple server written in d. I use a SocketSet to
> check requests from clients.
> 
> I have to send back response and close connection. Is there a method
> to check if socket sent data or not with an async socket (so i can
> close it)?

Simply use SocketSet and do some kind of select. You'll read 0 bytes
from it, if it has disconnected.


More information about the Digitalmars-d mailing list