Skip to content

add "enet_host_destroy"? #4

@Ayyyg

Description

@Ayyyg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions