Wait For Events on Source (internal)

qb, db, sb = source.event_wait(p)

This is an internal function that is used to glue Lua to the rest of the protocol engine.

There is an auxiliary function source.active_loop that repeatedly calls this methods.

Parameter Type Description
p table Protocol table
Returns Type Description
qb boolean Protocol engine needs to shut down
db boolean There is data. Call protocol.data
sb boolean It is time to call protocol.second
Warning

You must not call these functions normally.
(Here for completeness)