enet.host:service

Wait for events, send and receive any ready packets.

Function

Synopsis

event = host:service( timeout )

Arguments

number timeout
The max number of milliseconds to be waited for an event. Default is 0.

Returns

table event
An event or nil if no events occured.

See Also

Other Languages