aboutsummaryrefslogtreecommitdiffhomepage
path: root/protocol.c
AgeCommit message (Collapse)Author
2024-06-10Fix undefined behaviour with signed left shift in fragment calculations ↵Arvid Norlander
(fixes #256) (#257) Co-authored-by: Arvid Norlander <[email protected]>
2024-03-05Fix unaligned reads and writes of the checksum (fixes #237) (#238)Arvid Norlander
Co-authored-by: Arvid Norlander <[email protected]>
2023-07-23better partial message handlingLee Salzman
2023-04-01update connecting peer's mtu from host's current mtuLee Salzman
2023-03-10Fix MTU negotiation on server sideRalph Sennhauser
On connect the MTU sent by the client gets stored and sent back unchanged if within minimum and maximum of the protocol. Then on verify connect a test is done if the returned MTU is smaller than the current MTU and if so gets adjusted. So as long as the MTU is within boundaries only the client specified MTU is relevant. This patch adds a check for smaller MTU on server side. Signed-off-by: Ralph Sennhauser <[email protected]>
2023-02-05avoid explicitly storing roundTripTimeoutLimitLee Salzman
2023-02-04remove unnecessary sent unreliable list from peersLee Salzman
2023-02-04avoid revisiting peers when continuing to sendLee Salzman
2023-02-04maintain a separate queue for outgoing send reliable packetsLee Salzman
2022-08-12use a hard-coded crc32 tableLee Salzman
2021-04-25silence some MSVC warningsLee Salzman
2020-11-13avoid sending packets in unacknowledged windowLee Salzman
2020-10-19fix for sending getting too far ahead of receiverLee Salzman
2020-09-08revert failed throttle changesLee Salzman
2020-09-05clamp RTT variance a bit more loosely for throttleLee Salzman
2020-09-03round RTT stats before comparingLee Salzman
2020-09-01clamp minimum highest RTT varianceLee Salzman
2020-08-23more command queuing fixesLee Salzman
2020-08-23make throttle more readily accelerateLee Salzman
2020-08-12make throttle even more tolerant of varianceLee Salzman
2020-07-24clamp throttle variance from below based on RTT percentageLee Salzman
2020-07-23use unified outgoing command queue for reliable and unreliable commandsLee Salzman
2020-04-16stabilize packet throttle when RTT variance is lowLee Salzman
2020-04-13don't throttle on first RTT measurementLee Salzman
2020-04-07Return 0 instead of -1 on enet_protocol_receive_incoming_commandsMaxim
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-04accumulate fractional RTT valuesLee Salzman
2020-04-03clamp roundTripTimeLee Salzman
2020-03-03make RTT calculations more TCP-like (contributed by Vladimir 'virtul' Ivannikov)Lee Salzman
2019-01-27delay handling of DISCONNECT_LATER until in-flight unreliable packets are sentLee Salzman
2015-03-12fix window wrap check when sending reliable outgoing commands[email protected]
2015-03-09handle case in bandwidth limit protocol where either incoming or outgoing ↵[email protected]
limits are disabled, but not both
2014-09-29limit number of packets that can be received per iteration of protocol loopLee Salzman
2014-04-14fix maximumWaitingData handling to allow acknowledgements when the packet ↵Lee Salzman
already exists
2014-04-14added maximumPacketSize and maximumWaitingData fields for limiting peer ↵Lee Salzman
buffer space
2014-02-21avoid an enet_time_get call when timeout expireslsalzman
2013-11-27handle disconnects in connecting statelsalzman
2013-11-17allow loopback connectionsLee Salzman
2013-08-18small fix for duplicate peersLee Salzman
2013-08-09stub out enet_host_random_seed()lsalzman
2013-05-12typo fixLee Salzman
2013-05-11track the number of connected peers to make throttling a bit cheaperLee Salzman
2013-05-10handle EINTR in enet_socket_waitLee Salzman
2013-03-23set unused reliable sequence number field for acks to sane valueLee Salzman
2013-03-19only use perror if ENET_DEBUG definedlsalzman
2013-02-27added ENET_PACKET_FLAG_SENT to indicate that a packet has been sentlsalzman
2013-01-07state handling cleanupsLee Salzman
2012-10-02intercept callback supportlsalzman
2012-09-18merging some things from Ryan C. Gordon (icculus):Lee Salzman
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-18fix serialization of mtu in verify connect packetLee Salzman
2012-07-31case warning fixesLee Salzman