Sockets on Windows

Reuben Thomas
Fri, 23 Feb 2001 11:41:56 +0000 (GMT)

> administrator@DEFAULT /cygdrive/d/dom/home/socketTest
> $ ./server1 8000
> Fail: does not exist
> Action: getProtocolByName
> Reason: no such protocol entry

Just from looking at the manpage for getprotobyname, I surmise that the
problem is that you don't have an /etc/protocols file (or equivalent) under
Windows. I'm not sure what's supposed to happen (or for that matter, what's
supposed to work). Look in hslibs/net/BSD.lhs; I couldn't work out what was
going on in a minute; perhaps someone else knows.

The other thing I couldn't work out was where getProtocolByName was being
called in the first place, but presumably it's to find the protocol number
of tcp.

-- | Slow Pedestrian Crossing