Difference between revisions of "enet.host:destroy"

(Created page with "Destroys the host structure and closes all of its connections. Do not call this directly! This function is ran automatically by lua's garbage collector, but can b...")
 
m (Zorg moved page enet.host: gc to enet.host:destroy: slime said so :P Also, people should use an exposed method, instead of tricks to free ports.)
(No difference)

Revision as of 01:48, 30 October 2016

Destroys the host structure and closes all of its connections. Do not call this directly! This function is ran automatically by lua's garbage collector, but can be invoked indirectly by running collectgarbage() when all references to the host are set to nil or are otherwise lost.

Function

Synopsis

host:__gc()

Arguments

None

Returns

None

See Also

Other Languages