Skip to content

Secure Protocol

Yannik Marchand edited this page Feb 19, 2022 · 22 revisions

NEX Protocols > Secure Connection (11)

Nintendo Badge Arcade extends this protocol with an additional method.

Method ID Method Name
1 Register
2 RequestConnectionData
3 RequestUrls
4 RegisterEx
5 TestConnectivity
6 UpdateURLs
7 ReplaceURL
8 SendReport

(1) Register

The secure server keeps a list of client urls that can be registered (added) and replaced by the client.

Request

Type Name Description
List<StationURL> vecMyURLs Local client urls

Response

Type Name Description
Result %retval% Result code
Uint32 pidConnectionID Rendez-Vous connection id
StationURL urlPublic Public client url, as perceived by the server

The client should place the connection id into the RVCID field of its client station urls.

(2) RequestConnectionData

Request

Type Name Description
Uint32 cidTarget CID of station url
Uint32 pidTarget PID of station url

Response

Type Name Description
Bool %retval% Result
List<ConnectionData> pvecConnectionsData Connection data

ConnectionData (Structure)

Type Name Description
StationURL m_StationUrl Station url
Uint32 m_ConnectionID Connection id

(3) RequestUrls

Request

Type Name Description
Uint32 cidTarget CID
Uint32 pidTarget PID

Response

Type Name Description
Bool %retval% Result
List<StationURL> plstURLs Station urls

(4) RegisterEx

Request

Type Name Description
List<StationURL> vecMyURLs Local client urls
Data hCustomData Login data, see below

NintendoLoginData / AccountExtraInfo

Type Description
String Token (received from the account server)

Response

Same as response for the Register method.

(5) TestConnectivity

This method takes no parameters and doesn't return anything.

(6) UpdateURLs

Request

Type Name Description
List<StationURL> vecMyURLs Station urls

Response

This method doesn't return anything.

(7) ReplaceURL

Request

Type Name Description
StationURL target Old station url
StationURL url New station url

Response

This method does not return anything.

(8) SendReport

Request

Type Name Description
Uint32 reportId Report id
qBuffer reportData Data

Response

This method does not return anything.

Clone this wiki locally