Difference between revisions of "enet.peer:state"

(Created page with "Returns the state of the peer as a string. == Function == === Synopsis === <source lang="lua"> peer:state() </source> === Arguments === None === Returns === {...")
 
m
Line 26: Line 26:
 
* [[enet.peer]]
 
* [[enet.peer]]
 
== Other Languages ==
 
== Other Languages ==
{{i18n|enet.peer:disconnect_now}}
+
{{i18n|enet.peer:state}}

Revision as of 04:58, 9 October 2014

Returns the state of the peer as a string.

Function

Synopsis

peer:state()

Arguments

None

Returns

string state
The peer's current state. It can be any of the following:
  • "disconnected"
  • "connecting"
  • "acknowledging_connect"
  • "connection_pending"
  • "connection_succeeded"
  • "connected"
  • "disconnect_later"
  • "disconnecting"
  • "acknowledging_disconnect"
  • "zombie"
  • "unknown"


See Also

Other Languages