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 [[...")
 
m (Atoning for not writing a summary before; Fixed returns block.)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
None
+
None.
 
=== Returns ===
 
=== Returns ===
None
+
{{param|number|index|The index of the peer.}}
  
 
== See Also ==
 
== See Also ==

Latest revision as of 02:07, 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 index
The index of the peer.

See Also

Other Languages