1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

36 Commits

Author SHA1 Message Date
Daniel Collins
431d0b8047 Began cleanup/overhaul of DirectPlay service provider. Removed last of the "extended bind" kludge implemented for previous code. 2011-09-08 18:42:27 +00:00
Daniel Collins
b1828e0958 Implemented proper SO_REUSEADDR support and fixed getsockopt to return proper value when SOL_SOCKET/SO_BROADCAST is requested. 2011-09-08 18:28:01 +00:00
Daniel Collins
b3d911abea Partial cleanup of locking code. 2011-09-08 00:20:34 +00:00
Daniel Collins
3c9d1870c8 Merged EnumProtocolsA and EnumProtocolsW into a single function. 2011-09-07 23:29:14 +00:00
Daniel Collins
dd1a6d3b02 Cleaned up some winsock includes, changed EnumProtocolsW to use correct PROTOCOL_INFO structure. 2011-09-07 23:03:14 +00:00
Daniel Collins
0b73241fe8 Check packet size and cache source IP in recv_packet. Destination network number is replaced with the source IP of the packet by the router thread. 2011-09-07 20:37:18 +00:00
Daniel Collins
d046b6522d Switchover to new router code 2011-09-07 20:03:16 +00:00
Daniel Collins
2674e3356f More code cleanup and a couple of files I forgot to add last commit. 2011-08-29 13:21:18 +00:00
Daniel Collins
8b1c53e0bd More code cleanup 2011-08-29 13:15:10 +00:00
Daniel Collins
bbfbcb79cd Lots of code cleanup. 2011-08-28 21:27:06 +00:00
Daniel Collins
e5271a3df6 Added (very) experimental DirectPlay support. 2011-08-28 15:56:05 +00:00
Daniel Collins
fb68a9a593 Cleaned up logging code, added log timestamps (using GetTickCount) and changed calls in router code to prevent it from generating extra log messages. 2011-07-13 22:56:19 +00:00
Daniel Collins
6a288558b0 Fixed undefined behaviour warning from typo. 2011-07-12 13:28:57 +00:00
Daniel Collins
81c54ce285 Changed debug messages in socket/closesocket. 2011-07-09 02:20:46 +00:00
Daniel Collins
4646bfd6c8 Updated recv_packet to be usable in WSARecvEx. 2011-05-30 03:33:39 +00:00
Daniel Collins
cbf1dad417 Moved most of code from recv and recvfrom into recv_packet to save on duplicate code, remove potential deadlock from recv in the process. 2011-05-30 02:44:17 +00:00
Daniel Collins
7aa42f5f78 Removed potential deadlocking bug from WSARecvEx and cleaned up a bit. 2011-05-30 02:08:31 +00:00
Daniel Collins
8ebce5612d Release mutex before calling r_recv() in recvfrom() due to deadlocking. Locking code needs rewriting at some point... 2011-05-08 21:32:54 +00:00
Daniel Collins
3d72ad087d Send broadcasts only to the bound subnet unless option is set in registry, then use INADDR_BROADCAST. Store subnet mask in ipx_nic in load_nics(). 2011-04-24 21:55:57 +00:00
Daniel Collins
c2e26c7cab Updated sendto() to only broadcast on enabled interfaces 2011-04-24 21:01:59 +00:00
Daniel Collins
7ba8d989a3 Load UDP port number from registry and only require SO_BROADCAST to be set for receiving packets when the win95 broadcast bug is enabled. (Currently enabled by default) 2011-04-24 18:44:31 +00:00
Daniel Collins
c15064aca1 Updated recvfrom() to use correct byte order 2011-04-24 17:50:15 +00:00
Daniel Collins
8f4a5e1c6f Cleaned up socket() 2011-04-24 17:40:25 +00:00
Daniel Collins
53346c2536 Updated how router thread checks packet sizes, cleaned up code 2011-04-24 16:59:21 +00:00
Daniel Collins
42b3f7ce13 Send packets with destination network number set to that of the network card when 00:00:00:00 is used. 2011-04-24 16:32:09 +00:00
Daniel Collins
62b2fada8f Updated sendto() 2011-04-24 02:08:37 +00:00
Daniel Collins
cb8dd19c5d Updated getsockopt() 2011-04-24 01:37:25 +00:00
Daniel Collins
fdbd65ba1b Updated getsockname() for correct ipx_socket.socket endianness. 2011-04-24 01:26:21 +00:00
Daniel Collins
033c7b0752 Rewrote most of the bind() function, it (should) now match the winsock API and IPX standards better. 2011-04-24 01:23:10 +00:00
Daniel Collins
4afad85e3c Host list entries are now identified by both network AND node numbers and expire after TTL (60) seconds of not receiving any packets. 2011-04-23 23:42:14 +00:00
Daniel Collins
a3fba1773d Implemented ioctlsocket() wrapper with support for FIONREAD. 2010-01-09 16:20:18 +00:00
Daniel Collins
75c0f30518 Rewrote stub generation code to create ASM code, no more unimplemented functions due to missing declarations! 2009-01-25 17:06:29 +00:00
Daniel Collins
192365e8e8 Added support for implicit binds 2008-12-11 21:52:28 +00:00
Daniel Collins
b1af7ae0cc Fixed a bug in setsockopt() 2008-12-11 21:30:34 +00:00
Daniel Collins
bf62ce71d6 Updated getsockopt() and setsockopt() to return WSAENOPROTOOPT when given unimplemented NSPROTO_IPX options. 2008-12-11 21:27:40 +00:00
Daniel Collins
4d28856065 Imported current tree into SVN 2008-12-09 21:36:07 +00:00