enet.event

enet.event

Description

An event is a table generated by host:service() or peer:recieve() which will always contain a string named type, a enet.peer named peer, and a string or number named data depending on the kind of event.

Though be wary that host:service() and peer:recieve() can return nil if no events are in the queue.

Structure

event.type event.peer event.data
"receive" peer string
"disconnect" peer number
"connect" peer number

See Also

doc_love
2017-03-21 15:43:11
Comments
Leave a Comment

Please login to continue.