Lee Salzman
Lee Salzman
Have you tried throwing on an enet_host_flush after your service loop? The throttle looks fine but it looks like you may be getting behind on sending out the packets and...
You can already change the mtu by just altering the value of it in your host after enet_host_create. So, I opt for (a) ignore it.
I did. You can override the mtu by changing it on the host, which is used for both sides of the connection.
If you want to do something like that, just tell the other side the mtu and have them fill it in. This is completely achievable at the user level since...
Lowered the default MTU to 1392 since on balance that seems a reasonable enough change that should not be disruptive to most users.
I don't really have any experience with WP development, but I'd consider patches. The winmm dependency is from timeGetTime/timeBeginPeriod/timeEndPeriod.
This won't work because the ENET_SOCKETSET_* and the ENET_HOST_TO_NET/ENET_NET_TO_HOST macros require winsock, and may be used as part of ENet's API.
I'll work something out with a define you can use before including to stop winsock.
The problem with this is that it essentially has to live in a different directory/library namespace because it is a breaking API change. It'd have to be called something like...
The point was to actually make it easy to use. Having to do byte sex on the port all the time just to manipulate port numbers is annoying. Whereas addresses...