lsalzman / enet

ENet reliable UDP networking library
MIT License
2.66k stars 667 forks source link

My enet_server can only receive 512 packets #225

Closed Steamgjk closed 1 year ago

Steamgjk commented 1 year ago

Hi, I have been following enet sample codes and write a small client/server demo and want to see how fast enet can be, i..e, the highest throughput it can achieve.

So I use the client to send packets every 100micro-seconds, but then I found the server can only receive the first 512 packets and then stops.

I guess there might be some parameters to configure since 512 is a special number. I can attach my code here, and I hope some friend can tell me what is wrong and how to make the server keep reading the packets.

Thanks Archive.zip

Steamgjk commented 1 year ago

Soved by myself. (Need to call enet_host_service periodically)