aresch / pyenet

A python wrapper for the ENet library
BSD 3-Clause "New" or "Revised" License
52 stars 30 forks source link

what is enet_host_destroy in pyenet? #20

Closed HanzCEO closed 4 years ago

HanzCEO commented 4 years ago

Maybe im a little dumb or what, but i really need your help guys. So i make a new function:

def disconnect():
    # enet_host_destroy(server)
    exit()

so my question is, is there any method like enet_host_destroy in this package? if there's any, where i should find it?

Thanks

aresch commented 4 years ago

https://github.com/aresch/pyenet/blob/acb3d78731e587e3d07f349af649d9af025fe655/enet.pyx#L882-L884 The dealloc method on the Host object should do this for you when the Host gets deleted.