33c7d6903e843d450eb18769d5802e83de538825
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.
Please visit the ENet homepage at http://enet.bespin.org for installation and usage instructions. If you obtained this package from github, the quick description on how to build is: # Generate the build system. autoreconf -vfi # Compile and install the library. ./configure && make && make install
Description
Mirror of cgutman/enet (MIT) — reliable UDP networking library, fork used by moonlight-common-c
766 KiB
Languages
C
97.8%
CMake
1.1%
Lua
0.4%
M4
0.4%
Makefile
0.3%