Difference between revisions of "enet.peer:send"

m
Line 1: Line 1:
Queues a packet to be sent to the [[enet.peer | peer]].
+
Met en fil d'attente, un paquet à émettre à un [[enet.peer (Français)|peer]] (pair).
  
== Function ==
+
== Fonction ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Line 7: Line 7:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|string|data|The contents of the packet, it must be a [[string]].}}
+
{{param|string (Français)|data|The contents of the packet, it must be a [[string]].}}
{{param|number|channel|The channel to send the packet on. Optional. Defaults to 0.}}
+
{{param|number (Français)|channel|The channel to send the packet on. Optional. Defaults to 0.}}
{{param|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. 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.}}
+
{{param|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.}}
=== Returns ===
+
=== Retourne ===
Nothing.
+
Rien.
  
== See Also ==
+
== Voir également ==
* [[parent::lua-enet]]
+
* [[parent::lua-enet (Français)]]
* [[enet.peer]]
+
* [[enet.peer (Français)]]
* [[enet.peer:receive]]
+
* [[enet.peer:receive (Français)]]
* [[enet.host]]
+
* [[enet.host (Français)]]
* [[enet.event]]
+
* [[enet.event (Français)]]
== Other Languages ==
+
[[Category:Functions (Français)]]
 +
{{#set:Description=Met en fil d'attente, un paquet à émettre à un [[enet.peer (Français)|peer]] (pair).}}
 +
{{#set:Since=000}}
 +
 
 +
== Autres langues ==
 
{{i18n|enet.peer:send}}
 
{{i18n|enet.peer:send}}

Revision as of 13:56, 24 September 2021

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


Autres langues