Mail Archives: djgpp/2001/01/06/11:36:32
Hello.
Eli Zaretskii wrote:
> The problem with this interface is not how to access it---this is
> documented in RBIL---but what data structures to use, how to lay them
> out, and what values to use for some of the flags. If that is
> documented by Microsoft, then the problem is solved (but then I wonder
> how come it took such a long time for Rich Dawe and friends to find
> the way to make the Wsock2 interface work).
Unfortunately the WSOCK2.VXD interface is completely undocumented. In
fact, the WSOCK.VXD interface is only "documented" by a header file. It's
a big jump from a header file to a known interface. The DDK documentation
is constantly criticised for not having enough detail, not documenting
vital interfaces, assumptions, etc.
The only thing I discovered about the WSOCK2.VXD interface was that it was
different than the WSOCK.VXD interface. ;) All the credit for the
discovery goes to other people. See:
http://www.phekda.freeserve.co.uk/richdawe/dossock/
for more details.
I've coded up an interface to WSOCK2.VXD for libsocket, but there are a
couple of snags. The first one is that you need to apply a patch to bugfix
WSOCK2.VXD. The second is that I haven't had enough time to do fix the
first snag. It's looking hopeful - you can create a socket, connect and
close the socket. Sending and receiving data does not work (snag #1). As
ever, it's just a question of time.
Bye, Rich =]
--
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]
- Raw text -