Cameron Gutman
e790647a57
Correctly support hosts with multiple possible source addresses
2023-02-12 15:35:34 -06:00
Mariotaku
4cde9cc3dc
Fixed build with MinGW ( #8 )
...
* Fixed build with MinGW
* improved typedef check for MinGW
* added include dir to enet lib
2021-09-15 23:02:02 -05:00
Cameron Gutman
8d69c5abe4
Avoid statically linking to qwave.dll
...
It's not present on Server SKUs by default.
2021-06-12 12:14:46 -05:00
Cameron Gutman
ad5bf95397
fix excessive retransmissions when average RTT variance is 0
2021-05-16 15:35:02 -05:00
Cameron Gutman
ab9d471cec
fix SRTT calculations when RTT < 8 ms and SRTT >= 8 ms
2021-05-16 14:15:38 -05:00
Cameron Gutman
c20ca391e2
fix RTO limit being exceeded
2021-05-14 18:46:49 -05:00
Cameron Gutman
70ce1c3e0b
Merge remote-tracking branch 'upstream/master' into moonlight
2021-04-29 09:40:57 -05:00
Lee Salzman
cf735e639e
fix minimum cmake version
2021-04-26 00:01:11 -04:00
Lee Salzman
e8dbb360fb
better socklen_t detection
2021-04-25 23:50:39 -04:00
Lee Salzman
0286dcdb34
silence some MSVC warnings
2021-04-25 23:44:51 -04:00
Cameron Gutman
d8976c4fcc
Merge pull request #6 from GaryOderNichts/wiiu
...
Wii U changes
2021-04-17 23:27:01 -05:00
GaryOderNichts
bdfdb8b85d
Wii U changes
2021-04-12 13:56:21 +02:00
Lee Salzman
e3ada4ed75
implement mulberry32 for PRNG
2021-01-13 01:39:14 -05:00
Cameron Gutman
d9e561938f
Merge pull request #5 from lsalzman/master
...
Rebase to lsalzman/enet: update to 1.3.17
2021-01-09 18:38:33 -06:00
Lee Salzman
2cc0e7c780
fix more changelog typos
2020-12-19 00:21:42 -05:00
Lee Salzman
b64793fa5e
fix typo in changelog
2020-12-19 00:20:16 -05:00
Lee Salzman
e0e7045b7e
1.3.17 release prep
v1.3.17
2020-11-15 12:40:57 -05:00
Lee Salzman
4de13a2c2e
avoid sending packets in unacknowledged window
2020-11-13 00:11:34 -05:00
Lee Salzman
0d1fb32ee8
fix for sending getting too far ahead of receiver
2020-10-19 20:21:04 -04:00
Lee Salzman
0bd265b230
1.3.16 release prep
v1.3.16
2020-09-08 13:45:45 -04:00
Lee Salzman
54dac7af81
revert failed throttle changes
2020-09-08 13:39:54 -04:00
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
Cameron Gutman
2a788029bf
Enable poll() for Linux/BSD
2020-07-27 00:01:51 -07:00
Cameron Gutman
757933e7bc
Enable poll() on macOS and iOS
2020-07-26 20:06:38 -07: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
Cameron Gutman
8d794daa7c
Merge branch 'master' of https://github.com/lsalzman/enet into moonlight
...
# Conflicts:
# unix.c
# win32.c
2020-06-12 21:46:42 -07:00
Cameron Gutman
9bf55a3433
Disable QoS tagging if 2 connect packets in a row are dropped
2020-06-12 21:16:46 -07:00
Lee Salzman
224f31101f
fix doc license
v1.3.15
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
Cameron Gutman
5c96da29c2
Enable QoS prioritization on Windows
2020-04-09 17:42:12 -07: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
Cameron Gutman
d988023971
Use EF instead of CS7 for DSCP
...
Some security guidelines recommend dropping CS7 tagged packets at the edge,
since CS7 is reserved for network control. EF seems to be the standard for
telephony applications and is fairly well preserved across the Internet per
https://www.sciencedirect.com/science/article/pii/S0166531619300203
2020-04-03 16:58:18 -07:00
Lee Salzman
b4c427059a
clamp roundTripTime
2020-04-03 03:48:38 -04:00
Cameron Gutman
637cd52e96
Enable QoS prioritization on Linux
2020-03-29 15:44:14 -07:00