Difference between revisions of "enet.host:broadcast"

(Created page with "Queues a packet to be sent to all connected peers. == Function == === Synopsis === <source lang="lua"> host:broadcast(data, channel, flag) </source> === Arguments...")
 
m (Returns: stylistic edit.)
Line 10: Line 10:
 
{{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. Unsequenced packets are unreliable and have no guarantee on the order they arrive. Defaults to reliable.}}
 
{{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. Unsequenced packets are unreliable and have no guarantee on the order they arrive. Defaults to reliable.}}
 
=== Returns ===
 
=== Returns ===
None
+
Nothing
  
 
== See Also ==
 
== See Also ==

Revision as of 02:18, 30 October 2016

Queues a packet to be sent to all connected peers.

Function

Synopsis

host:broadcast(data, channel, flag)

Arguments

string data
The data to send.
number channel
The channel to send the packet on. 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. Defaults to reliable.

Returns

Nothing

See Also

Other Languages