Difference between revisions of "enet.peer:index"

m (Atoning for not writing a summary before; Fixed returns block.)
 
Line 8: Line 8:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|number|x|The index of the peer.}}
+
{{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