Destroys the [[enet.host | host]] structure and closes all of its connections.
This function is also ran automatically by lua's garbage collector, since it's an alias to ''host:__gc''.
== Function ==
=== Synopsis ===
<source lang="lua">
host:destroy()
</source>
=== Arguments ===
None.
=== Returns ===
Nothing.

== See Also ==
* [[parent::lua-enet]]
* [[enet.host]]
== Other Languages ==
{{i18n|enet.host:destroy}}