Checking if a port is listening
Anonymouse via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Mar 17 03:56:30 PDT 2016
On Thursday, 17 March 2016 at 10:41:55 UTC, Marc Schütz wrote:
> On Wednesday, 16 March 2016 at 22:22:15 UTC, Anonymouse wrote:
>> import core.thread; // for .seconds
>
> Nitpick: `seconds` is defined in `core.time`; `core.thread`
> just reexports it.
>
>> s.setOption(SocketOptionLevel.SOCKET, SNDTIMEO, 10.seconds);
>> s.setOption(SocketOptionLevel.SOCKET, RCVTIMEO, 10.seconds);
Er, yes, didn't think that through properly.
More information about the Digitalmars-d-learn
mailing list