HaxeNet icon indicating copy to clipboard operation
HaxeNet copied to clipboard

add "enet_host_destroy"?

Open Ayyyg opened this issue 11 years ago • 0 comments

http://enet.bespin.org/group__host.html#gacec1e9a0b528c1f9ce30544d2d5b5b79

this library works great but it lack a function to destroy a host completely

for example. if you are a client, you disconnect from server but the client actually still running in other thread

if you are a server, you need to exit application or it still running in other thread, too

and just a suggestion, add a check when calling Peers[val_int(ID)] ? so that if you set a non exist peer ID, it won't crash application

Ayyyg avatar Mar 12 '15 14:03 Ayyyg