From: Wayne Davison (wayned@users.sourceforge.net)
Date: Sat Oct 07 2000 - 17:27:21 EDT
The attached patch makes the nano-http code work with Win32 winsock code.
I've done some limited testing, and things appear to be working well.
Note that I did not touch or look at the ftp code. Some notes on my
changes follow.
I made xmlNanoHTTPInit() call WSAStartup() and xmlNanoHTTPCleanup()
call WSACleanup(). This is safe even if the parent code is calling these
functions.
I tried to avoid lots of #ifdefs, so I defined a few macros at the start
of the file:
- "socket_errno" resolves to either "errno" or the WSAGetLastError()
function.
- I changed the close-socket calls into closesocket().
- I changed read() into recv() (but see note below).
- I changed write() into send() (but see note below).
In order to have a minimal impact on non-winsock code, I defined
recv/send/closesocket to be their former functions on non-winsock systems
(even though I don't think that the recv and send defines are strictly
needed).
..wayne..
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Mon Oct 09 2000 - 09:43:20 EDT