Socket - handling large numbers of incoming connections

Adrian Matoga via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Dec 21 14:01:56 PST 2015


On Monday, 21 December 2015 at 21:32:55 UTC, Jakob Jenkov wrote:
>> My server uses "poll" for that.
>
> Okay, how does that work? How do I use "poll" in D?
>
> Link?
> Code example?

The same as in C [1].
Just change
#include <poll.h>
to
import core.sys.posix.poll;

[1] http://linux.die.net/man/2/poll



More information about the Digitalmars-d-learn mailing list