enet.peer:send
Met en fil d'attente, un paquet à émettre à un peer (pair).
Fonction
Synopsis
peer:send(data, channel, flag)
Arguments
string (Français) data
- The contents of the packet, it must be a string.
number (Français) channel
- The channel to send the packet on. Optional. Defaults to 0.
strin (Français)g 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. Unreliable packets arrive in the order in which they are sent, but they aren't guaranteed to arrive. Unsequenced packets are neither guaranteed to arrive, nor do they have any guarantee on the order they arrive. Optional. Defaults to reliable.
Retourne
Rien.
Voir également
- lua-enet (Français)
- enet.peer (Français)
- enet.peer:receive (Français)
- enet.host (Français)
- enet.event (Français)
Autres langues
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