|
wavelength 1.0.0
|
Queue of the inetctl events. More...
#include <ineteventqueue.h>
Public Types | |
| enum | InterfaceState { kInterfaceNone = -1 , kInterfaceUp = 1 , kInterfaceDown = 4 , kInterfaceLost = 0x100 } |
| Interface states MapEvent() reports. More... | |
Static Public Member Functions | |
| static int | GetEvent (int *interfaceId, int *event) |
| Take the oldest event, waiting up to five times 0.3 seconds for the first one. | |
| static int | MapEvent (int interfaceId, int event) |
| Turn an event into an InterfaceState, recording a started interface. | |
| static void | EventHandler (int interfaceId, int event) |
| Event handler. | |
Static Public Attributes | |
| static constexpr int | kInterfaceCount = 2 |
| Number of recorded interfaces. | |
| static constexpr int | kQueueSize = 16 |
| Capacity of the queue. | |
| static int | sInterfaceIds [kInterfaceCount] |
| Recorded interfaces. | |
| static int | sLockSema |
| Semaphore that guards the queue. | |
| static int | sCountSema |
| Semaphore that counts the queued events. | |
| static int | sReadIndex |
| Index of the oldest event. | |
| static int | sWriteIndex |
| Index the next event goes to. | |
| static unsigned int | sFlags |
| Flag bits. | |
| static sceInetCtlEventHandler | sHandler |
| Registration of EventHandler(). | |
Queue of the inetctl events.
An event handler fills it and the EE drains it through RPC functions. It also records the interfaces that started.
The module was built without RTTI. The name is inferred from the module's routines.
Interface states MapEvent() reports.
| Enumerator | |
|---|---|
| kInterfaceNone | The event changes nothing the EE waits for. |
| kInterfaceUp | The primary interface came up. |
| kInterfaceDown | An interface went down. |
| kInterfaceLost | The primary interface went away. |
|
static |
Take the oldest event, waiting up to five times 0.3 seconds for the first one.
| interfaceId | Receives the interface identifier, -1 after a queue overflow. |
| event | Receives the event. |
|
static |
Turn an event into an InterfaceState, recording a started interface.
| interfaceId | Interface identifier. |
| event | Event. |
|
static |
Event handler.
Append an event to the queue.
| interfaceId | Interface identifier. |
| event | Event. |
|
staticconstexpr |
Number of recorded interfaces.
|
staticconstexpr |
Capacity of the queue.
|
static |
Recorded interfaces.
The first is the one the module waits for.
|
static |
Semaphore that guards the queue.
|
static |
Semaphore that counts the queued events.
|
static |
Index of the oldest event.
|
static |
Index the next event goes to.
|
static |
Flag bits.
|
static |
Registration of EventHandler().