Difference between revisions of "enet.host:service"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Wait for events, send and receive any ready packets. If an event is in the queue it will be returned and dequeued. Generally you will want to dequeue all waiting events every frame. | + | Wait for [[enet.event | events]], send and receive any ready packets. If an [[enet.event | event]] is in the queue it will be returned and dequeued. Generally you will want to dequeue all waiting [[enet.event | events]] every frame. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
Line 6: | Line 6: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|number|timeout|The max number of milliseconds to be waited for an event. Default is 0.}} | + | {{param|number|timeout|The max number of milliseconds to be waited for an [[enet.event | event]]. Default is 0.}} |
=== Returns === | === Returns === | ||
{{param|table|event|An [[enet.event | event]] or nil if no events occured.}} | {{param|table|event|An [[enet.event | event]] or nil if no events occured.}} | ||
Line 13: | Line 13: | ||
* [[parent::lua-enet]] | * [[parent::lua-enet]] | ||
* [[enet.event]] | * [[enet.event]] | ||
− | |||
− | |||
== Other Languages == | == Other Languages == | ||
{{i18n|enet.host:service}} | {{i18n|enet.host:service}} |
Latest revision as of 19:23, 23 July 2014
Wait for events, send and receive any ready packets. If an event is in the queue it will be returned and dequeued. Generally you will want to dequeue all waiting events every frame.
Function
Synopsis
event = host:service( timeout )
Arguments
Returns
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info