wut
v1.7.0
Wii U Toolchain
|
#include <Cafe.h>
Static Public Member Functions | |
static nn::Result | AcceptClient (uint16_t nodeId) asm("AcceptClient__Q4_2nn3dlp4Cafe6ServerSFUs") |
Accepts a client into the DLP child distribution. More... | |
static nn::Result | CloseSessions () asm("CloseSessions__Q4_2nn3dlp4Cafe6ServerSFv") |
Closes the DLP session. More... | |
static nn::Result | DisconnectClient (uint16_t nodeId) asm("DisconnectClient__Q4_2nn3dlp4Cafe6ServerSFUs") |
Disconnects a client from the DLP session. More... | |
static nn::Result | Finalize () asm("Finalize__Q4_2nn3dlp4Cafe6ServerSFv") |
Finalizes DLP. More... | |
static nn::Result | GetClientInfo (nn::uds::Cafe::NodeInformation *clientInfo, uint16_t nodeId) asm("GetClientInfo__Q4_2nn3dlp4Cafe6ServerSFPQ4_2nn3uds4Cafe15NodeInformationUs") |
Gets information about a client. More... | |
static nn::Result | GetClientState (ClientState *state, uint16_t nodeId) asm("GetClientState__Q4_2nn3dlp4Cafe6ServerSFPQ4_2nn3dlp4Cafe11ClientStateUs") |
Gets a client state. More... | |
static nn::Result | GetClientState (ClientState *state, uint32_t *unitsTotal, uint32_t *unitsReceived, uint16_t nodeId) asm("GetClientState__Q4_2nn3dlp4Cafe6ServerSFPQ4_2nn3dlp4Cafe11ClientStatePUiT2Us") |
Gets a client state. More... | |
static nn::Result | GetConnectingClients (uint16_t *receivedLength, uint16_t *connectingClients, uint16_t length) asm("GetConnectingClients__Q4_2nn3dlp4Cafe6ServerSFPUsT1Us") |
Gets the clients that are connected to the DLP session. More... | |
static nn::Result | GetState (ServerState *state) asm("GetState__Q4_2nn3dlp4Cafe6ServerSFPQ4_2nn3dlp4Cafe11ServerState") |
Gets the server state. More... | |
static nn::Result | Initialize (uint8_t maxClientNum, uint32_t uniqueId, uint8_t childIndex, nn::cfg::CTR::UserName *userName) asm("Initialize__Q4_2nn3dlp4Cafe6ServerSFUcUiT1PQ4_2nn3cfg3CTR8UserName") |
Initializes DLP. More... | |
static nn::Result | Initialize (bool *dupNoticeNeed, uint8_t maxClientNum, uint32_t uniqueId, uint8_t childIndex, nn::cfg::CTR::UserName *userName) asm("Initialize__Q4_2nn3dlp4Cafe6ServerSFPbUcUiT2PQ4_2nn3cfg3CTR8UserName") |
Initializes DLP. More... | |
static nn::Result | OpenSessions (bool isManualAccept, uint8_t channel) asm("OpenSessions__Q4_2nn3dlp4Cafe6ServerSFbUc") |
Opens the DLP session. More... | |
static nn::Result | PollStateChange (uint8_t flags) asm("PollStateChange__Q4_2nn3dlp4Cafe6ServerSFUc") |
Checks if the server state chas changed, and waits until it changes if specified. More... | |
static nn::Result | RebootAllClients (const char *passPhrase) asm("RebootAllClients__Q4_2nn3dlp4Cafe6ServerSFPCc") |
Reboots all clients into the Download Play child. More... | |
static nn::Result | StartDistribution () asm("StartDistribute__Q4_2nn3dlp4Cafe6ServerSFv") |
Starts distribution of the Download Play child. More... | |
|
static |
Accepts a client into the DLP child distribution.
nodeId | The node ID of the client. |
|
static |
Closes the DLP session.
|
static |
Disconnects a client from the DLP session.
This cannot be done after starting distribution.
nodeId | The node ID of the client. |
|
static |
Finalizes DLP.
|
static |
Gets information about a client.
clientInfo | Pointer where the client information is written. |
nodeId | Node ID of the client. |
|
static |
Gets a client state.
state | Pointer where the client state is filled in. |
nodeId | Node ID of the client. |
|
static |
Gets a client state.
state | Pointer where the client state is filled in. |
unitsTotal | Pointer filled with the total number of units being distributed. Only filled when starting distribution and the DLP child isn't cached. |
unitsReceived | Pointer filled with the number of units that the client has received. Only filled when starting distribution and the DLP child isn't cached. |
nodeId | Node ID of the client. |
|
static |
Gets the clients that are connected to the DLP session.
receivedLength | Pointer where the number of clients written to the array is stored. |
connectingClients | Array where the node IDs of the clients are written. |
length | Number of nodes that the connectingClients array can hold. |
|
static |
Gets the server state.
Internal states are filtered as Distributing .
state | Pointer where the server state is written. |
|
static |
Initializes DLP.
maxClientNum | Maximum number of clients allowed for distribution. Must be between 1 and 8 inclusively. |
uniqueId | Unique ID of the DLP child to be distributed. |
childIndex | Index of the DLP child to be distributed. |
userName | Username that will be displayed to the clients. If NULL , the Mii name will be used. |
|
static |
Initializes DLP.
dupNoticeNeed | Unknown output bool, always false on the Wii U. |
maxClientNum | Maximum number of clients allowed for distribution. Must be between 1 and 8 inclusively. |
uniqueId | Unique ID of the DLP child to be distributed. |
childIndex | Index of the DLP child to be distributed. |
userName | Username that will be displayed to the clients. If NULL , the Mii name will be used. |
|
static |
Opens the DLP session.
isManualAccept | If set, all clients must be accepted to allow them to join the session. |
channel | The channel to be used for hosting the session. Use 0 to choose a channel automatically. Must be either 0, 1, 6 or 11. |
|
static |
Checks if the server state chas changed, and waits until it changes if specified.
flags | Flags, see PollStateChangeFlags for all flags. |
|
static |
Reboots all clients into the Download Play child.
passPhrase | Passphrase to be used by the client when connecting to the main UDS network. If NULL , it will be set to an empty string. |
|
static |
Starts distribution of the Download Play child.