Difference between revisions of "enet.peer:receive"
(Created page with "Attempts to dequeue an incoming packet for this peer. Returns nil if there are no packets waiting. Otherwise returns two values: The string representing the p...") |
m (stylistic edit.) |
||
Line 6: | Line 6: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | None | + | None. |
=== Returns === | === Returns === | ||
{{param|string|data|Data from the received packet in a string.}} | {{param|string|data|Data from the received packet in a string.}} |
Revision as of 02:12, 30 October 2016
Attempts to dequeue an incoming packet for this peer. Returns nil if there are no packets waiting. Otherwise returns two values: The string representing the packet data, and the channel the packet came from.
Function
Synopsis
peer:receive()
Arguments
None.
Returns
string data
- Data from the received packet in a string.
number channel
- Channel the packet was received from.
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