Difference between revisions of "enet.peer:index"

(Created page with "Returns the index of the peer. All peers of an ENet host are kept in an array. This function finds and returns the index of the [[...")
 
Line 6: Line 6:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
None
+
None.
 
=== Returns ===
 
=== Returns ===
None
+
{{param|number|x|The index of the peer.}}
  
 
== See Also ==
 
== See Also ==

Revision as of 02:06, 30 October 2016

Returns the index of the peer. All peers of an ENet host are kept in an array. This function finds and returns the index of the peer of its host structure.

Function

Synopsis

peer:index()

Arguments

None.

Returns

number x
The index of the peer.

See Also

Other Languages