CtlState - stingray.CtlState namespace reference - Stingray Lua API Reference

stingray.CtlState namespace reference

Description

The interface for accessing the NetCtl connection status on PlayStation 4.

This object is a singleton (there is only one CtlState).

Functions

Parameters
This function does not accept any parameters.
Returns

integer

Returns the current status. May be one of the status code constants.

Status codes

May be returned by calls to status().

CONNECTING : integer

The connection state is 'connecting'.

DISCONNECTED : integer

The connection state is 'disconnected'.

IPOBTAINED : integer

The connection state is 'IP obtained'.

IPOBTAINING : integer

The connection state is 'IP obtaining'.

UNKNOWN : integer

The connection state is 'unknown' due to an error.