Socket - handling large numbers of incoming connections
Johannes Pfau via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Dec 22 02:11:37 PST 2015
Am Mon, 21 Dec 2015 23:29:14 +0000
schrieb Adam D. Ruppe <destructionator at gmail.com>:
> On Monday, 21 December 2015 at 23:17:45 UTC, Daniel Kozák wrote:
> > If you want to reinvent the wheel you can use
>
> [...] it isn't like the bundled functions with the OS are
> hard to use [...]
>
epoll and similar interfaces are not difficult to use. But you
need to be careful to handle all error conditions caused by low level
posix io calls (read/write) correctly. (Partial reads/writes, How
do you handle EINTR? How do you handle error codes returned by the close
function*? ...)
* http://lwn.net/Articles/576478/
More information about the Digitalmars-d-learn
mailing list