Host.service

Waits for events on the host and shuttles packets between the host and its peers

class Host
service
(
uint timeout = 0
)

Parameters

timeout uint

number of milliseconds that ENet should wait for events

Return Value

Type: Event

The event which occurred if one happened or null if no event happened.

Throws

ENetException if enet_host_service fails

See Also

checkEvents

Meta