Difference between revisions of "enet.peer:send"
(Created page with "Queues a packet to be sent to peer. == Function == === Synopsis === <source lang="lua"> peer:send(data, channel, flag) </source> === Arguments === {{param|string...") |
|||
Line 1: | Line 1: | ||
− | Queues a packet to be sent to [[enet.peer | peer]]. | + | Queues a packet to be sent to the [[enet.peer | peer]]. |
== Function == | == Function == |
Revision as of 04:44, 9 October 2014
Queues a packet to be sent to the peer.
Function
Synopsis
peer:send(data, channel, flag)
Arguments
string data
- The contents of the packet, it must be a string.
number channel
- The channel to send the packet on. Optional. Defaults to 0.
string flag
- flag is one of "reliable", "unsequenced", or "unreliable". Reliable packets are guaranteed to arrive, and arrive in the order in which they are sent. Unsequenced packets are unreliable and have no guarantee on the order they arrive. Optional. Defaults to reliable.
Returns
None
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