Lee Salzman
b63fd5256a
clamp RTT variance a bit more loosely for throttle
2020-09-05 20:29:58 -04:00
Lee Salzman
65dc0f74d8
round RTT stats before comparing
2020-09-03 17:22:05 -04:00
Lee Salzman
bde113ef56
clamp minimum highest RTT variance
2020-09-01 00:26:10 -04:00
Lee Salzman
e55d226969
more command queuing fixes
2020-08-23 16:45:15 -04:00
Lee Salzman
259e5dbd23
command queuing fix
2020-08-23 16:40:17 -04:00
Lee Salzman
8d55487767
make throttle more readily accelerate
2020-08-23 16:35:43 -04:00
Lee Salzman
5de0a6f764
make throttle even more tolerant of variance
2020-08-12 15:42:57 -04:00
Lee Salzman
eda26a26d9
clamp throttle variance from below based on RTT percentage
2020-07-24 01:50:34 -04:00
Lee Salzman
4f3dbbaeb1
fix clearing of outgoing command queue
2020-07-23 14:35:39 -04:00
Lee Salzman
47d2e192aa
use unified outgoing command queue for reliable and unreliable commands
2020-07-23 04:42:59 -04:00
Lee Salzman
224f31101f
fix doc license
2020-04-20 22:16:53 -04:00
Lee Salzman
22272e29f9
enet 1.3.15 release prep
2020-04-19 19:40:37 -04:00
Lee Salzman
5b93d08fa5
update license dates
2020-04-16 00:16:10 -04:00
Lee Salzman
c25b57b2c1
stabilize packet throttle when RTT variance is low
2020-04-16 00:15:18 -04:00
Lee Salzman
f89e5986d0
don't throttle on first RTT measurement
2020-04-13 19:32:13 -04:00
Lee Salzman
bb14921419
Merge pull request #120 from Vincenz099/master
...
Return 0 instead of -1 on enet_protocol_receive_incoming_commands
2020-04-07 13:37:56 -04: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
007b7d2a3f
Se trecvLength = 0;
2020-04-07 12:48:10 +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
Maxim
33c7d6903e
Return 0 instead of -1 on enet_protocol_receive_incoming_commands
...
Return 0 instead of -1 on enet_protocol_receive_incoming_commands when nothing received.
This allows the Service loop to continue running and not return an error when there is nothing to do with the socket receive.
From debugging I found sometimes the enet_protocol_receive_incoming_commands returns -1 because simply nothing happened in the 256 for loop.
Other functions like enet_protocol_send_outgoing_commands return 0 when nothing happened.
2020-04-07 11:58:08 +02:00
Lee Salzman
6991632abf
accumulate fractional RTT values
2020-04-04 12:30:54 -04:00
Lee Salzman
b4c427059a
clamp roundTripTime
2020-04-03 03:48:38 -04:00
Lee Salzman
6537dc81f3
make RTT calculations more TCP-like (contributed by Vladimir 'virtul' Ivannikov)
2020-03-03 15:34:06 -05:00
Lee Salzman
0eaf48eeb0
enet 1.3.14 release prep
2019-01-27 15:00:06 -05:00
Lee Salzman
b8713bdf88
delay handling of DISCONNECT_LATER until in-flight unreliable packets are sent
2019-01-27 14:46:45 -05:00
Lee Salzman
e2ef83927d
Merge pull request #96 from Subv/patch-2
...
Add the <arpa/inet.h> include to unix.h
2018-09-11 00:25:10 -04:00
Sebastian Valle
cea2c5be9f
Remove the now unneeded <arpa/inet.h> include in unix.c
...
This is already included in unix.h
2018-09-10 23:21:55 -05:00
Lee Salzman
295456fba9
Merge pull request #95 from Subv/patch-1
...
Use <poll.h> instead of <sys/poll.h> in unix.c
2018-09-11 00:21:30 -04:00
Sebastian Valle
219c625c74
Add the <arpa/inet.h> include to unix.h.
...
Some files were using ENET_HOST_TO_NET_32 and ENET_NET_TO_HOST_32 without having included the <arpa/inet.h> file beforehand, leading to compiler warnings about implicit declarations of ntohl and htonl.
2018-09-10 23:19:30 -05:00
Sebastian Valle
335715309c
Use <poll.h> instead of <sys/poll.h> in unix.c
...
<poll.h> is the correct POSIX header according to the POSIX standard. Some targets (like homebrew for the Nintendo Switch) do not provide a <sys/poll.h> so it makes compiling for them rather hard.
2018-09-10 22:46:13 -05:00
Lee Salzman
2e1c6bceea
remove bandwidth limits from tutorial
2018-08-19 22:30:47 -04:00
Lee Salzman
39a72ab199
Merge pull request #83 from thelvyn/master
...
CMake source groups added for cleaner VS solutions.
2017-10-20 23:06:32 -04:00
Lukasz Fronc
67f964c2ad
CMake source groups added for cleaner VS solutions.
2017-10-15 11:02:29 +02:00
Lee Salzman
a84c120eff
Merge pull request #76 from jroweboy/mingw-fix
...
Fix mingw compilation when using CMake
2017-07-12 22:32:14 -04:00
James Rowe
6cc8cc8a26
Fix mingw compilation
...
In order to compile enet on mingw, you need to link against winmm and
ws2_32. This explicitly makes those libraries required on mingw
2017-07-12 19:24:14 -06:00
Lee Salzman
9d9ba122d4
Merge pull request #71 from cxong/patch-2
...
Don't treat warnings as errors
2017-05-21 22:09:53 -04:00
Cong
90560cd471
Don't treat warnings as errors
...
When enet is included as a child CMake project in a parent that has warnings treated as errors, enet fails to build. This ensures that the compiler doesn't treat warnings as errors for enet.
2017-05-22 10:15:27 +10:00
Lee Salzman
0891c520d2
Merge pull request #70 from cxong/patch-1
...
reduce warnings on MSVC
2017-05-21 09:44:35 -04:00
Cong
5f5e977eef
MSVC only warn up to level 3
...
enet produces warnings at level 4, which can interrupt compiles if warnings are treated as errors. Turning down the warning level resolves the issue.
2017-05-21 20:05:56 +10: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
lsalzman@gmail.com
f46fee0acc
typo fix
2016-06-04 18:12:24 -04:00
lsalzman@gmail.com
4d1067179b
update copyright years
2016-02-19 20:07:08 -05:00
lsalzman@gmail.com
00ccd3bd3f
return -1 instead of 0 if getnameinfo returns an error
2016-02-19 19:54:40 -05:00
Lee Salzman
809a1d15b6
update packet flag documentation
2015-12-30 18:13:58 -05:00
Lee Salzman
5f476546ed
use getaddrinfo and getnameinfo where available
2015-05-11 05:41:27 -04:00
lsalzman@gmail.com
f7c46f03fd
enet 1.3.13 release prep
2015-04-30 06:32:01 -07:00
lsalzman@gmail.com
7c27a5d5f8
fix window wrap check when sending reliable outgoing commands
2015-03-12 16:25:26 -07:00
lsalzman@gmail.com
9b06a12e71
handle case in bandwidth limit protocol where either incoming or outgoing limits are disabled, but not both
2015-03-09 11:54:01 -07:00
lsalzman
8df6e58c5f
gethostbyname_r/gethostbyaddr_r fix for dragonfly bsd
2015-02-14 07:48:49 -08:00
Lee Salzman
b574c946d8
update copyright year
2015-01-13 19:59:27 +02:00