Commit graph

29 commits

Author SHA1 Message Date
Lee Salzman
2a85cd6445 better partial message handling 2023-07-23 21:05:47 -04:00
Floogle
4e69c700d6 added ENET_SOCKOPT_TTL 2023-01-08 15:58:31 +01:00
Maxim
67cee4803a Set DWORD sentLength = 0;
Same case like receive, we should initialize this variable.
2020-04-07 13:02:48 +02:00
Maxim
92bf2d8256
Make recvLength = 0; In the rare case of it having bogus data.
I noticed from testing this that this might be the source of it, I once had a package returned with length total bogus. like 982349829 or something like that, it crashed my game, I suspect this is the source.
2020-04-07 12:33:26 +02:00
Lee Salzman
3ae5af4548 add portable enet_address_set_host_ip that can properly parse broadcast address 2017-05-06 14:55:03 -04:00
Lee Salzman
99004c45ac include mmsystem.h for timeGetTime 2014-05-28 21:16:14 +03:00
Lee Salzman
73c930881f avoid some strncpy usage 2014-03-08 18:46:39 +02:00
lsalzman
2c5dd69b17 fix RCVTIMEO and SNDTIMEO options on unix and also add NODELAY 2013-09-27 09:42:37 +03:00
Lee Salzman
c0713c47e6 more ENET_SOCKOPT_ERROR fixes 2013-08-16 01:18:21 +03:00
Lee Salzman
3595c0b3fb ENET_SOCKOPT_ERROR fix 2013-08-16 00:35:28 +03:00
Lee Salzman
e123218df3 added enet_socket_get_option() and ENET_SOCKOPT_ERROR 2013-08-16 00:14:02 +03:00
lsalzman
1658cf3a95 stub out enet_host_random_seed() 2013-08-09 09:41:57 +03:00
Lee Salzman
ff4e2cab30 check for _WIN32 instead of WIN32 2013-04-07 07:11:12 +03:00
Lee Salzman
726ff6bc6d query the socket name if an explicit address binding is requested on host creation 2013-03-20 00:43:34 +02:00
Lee Salzman
9dff8f72cf EWOULDBLOCK -> WSAEWOULDBLOCK 2012-09-26 14:06:58 +03:00
Lee Salzman
0e0ace781b merging some things from Ryan C. Gordon (icculus):
enet_socket_connect() shouldn't fail with non-blocking sockets.
Removed unused variable.
Sanity check for possible NULL dereference reported by clang's static…analysis.
Added an interface to shutdown().
Fixed typo in the comments.
2012-09-18 16:38:10 +03:00
Lee Salzman
71b7550049 treat destroying NULL as no-op 2012-09-11 02:28:50 +03:00
eihrul
5018dcf207 added support for setting tcp send/receive timeouts 2012-02-18 10:31:56 +00:00
eihrul
70d0d8f25d warning workarounds 2011-12-31 12:37:26 +00:00
eihrul
b846c47521 added miscellaneous updates for broadcasting 2008-09-15 23:11:22 +00:00
eihrul
3856e3fd15 zero out sin_zero 2008-02-24 14:19:47 +00:00
eihrul
0108785012 *** empty log message *** 2007-10-03 04:10:09 +00:00
eihrul
6a6e61b4bd *** empty log message *** 2007-05-31 08:04:23 +00:00
eihrul
92f904f56a *** empty log message *** 2006-12-13 04:36:07 +00:00
eihrul
1d6253cc3d *** empty log message *** 2006-07-06 21:22:41 +00:00
eihrul
550d23e25d 1.0 stuff 2006-03-14 23:21:50 +00:00
eihrul
fd57f842d5 added broadcasting 2005-06-08 01:13:28 +00:00
eihrul
d0764152e4 win32 bug fixes 2004-11-23 16:23:36 +00:00
eihrul
3010e46b47 Initial revision 2004-10-20 17:17:51 +00:00