Module: nintendo.nex.secure
Provides a client and server for the SecureConnectionProtocol. This page was generated automatically from secure.proto.
class SecureConnectionClient
The client for the SecureConnectionProtocol.
class SecureConnectionServer
The server for the SecureConnectionProtocol.
class ConnectionData(Structure)
class NintendoLoginData(Structure)
SecureConnectionClient
def __init__(client: RMCClient / HppClient)
Creates a new SecureConnectionClient.
async def register(urls: list[StationURL]) -> RMCResponse
Calls method 1 on the server. The RMC response has the following attributes:
result: Result
connection_id: int
public_station: StationURL
async def request_connection_data(cid: int, pid: int) -> RMCResponse
Calls method 2 on the server. The RMC response has the following attributes:
result: bool
connection_data: list[ConnectionData]
async def request_urls(cid: int, pid: int) -> RMCResponse
Calls method 3 on the server. The RMC response has the following attributes:
result: bool
urls: list[StationURL]
async def register_ex(urls: list[StationURL], login_data: Data) -> RMCResponse
Calls method 4 on the server. The RMC response has the following attributes:
result: Result
connection_id: int
public_station: StationURL
async def test_connectivity() -> None
Calls method 5 on the server.
async def update_urls(urls: list[StationURL]) -> None
Calls method 6 on the server.
async def replace_url(url: StationURL, new: StationURL) -> None
Calls method 7 on the server.
async def send_report(report_id: int, data: bytes) -> None
Calls method 8 on the server.
SecureConnectionServer
def __init__()
Creates a new SecureConnectionServer.
async def logout(client: RMCClient) -> None
Called whenever a client is disconnected. May be overridden by a subclass.
async def register(client: RMCClient, urls: list[StationURL]) -> RMCResponse
Handler for method 1. This method should be overridden by a subclass. The RMC response must have the following attributes:
result: Result
connection_id: int
public_station: StationURL
async def request_connection_data(client: RMCClient, cid: int, pid: int) -> RMCResponse
Handler for method 2. This method should be overridden by a subclass. The RMC response must have the following attributes:
result: bool
connection_data: list[ConnectionData]
async def request_urls(client: RMCClient, cid: int, pid: int) -> RMCResponse
Handler for method 3. This method should be overridden by a subclass. The RMC response must have the following attributes:
result: bool
urls: list[StationURL]
async def register_ex(client: RMCClient, urls: list[StationURL], login_data: Data) -> RMCResponse
Handler for method 4. This method should be overridden by a subclass. The RMC response must have the following attributes:
result: Result
connection_id: int
public_station: StationURL
async def test_connectivity(client: RMCClient) -> None
Handler for method 5. This method should be overridden by a subclass.
async def update_urls(client: RMCClient, urls: list[StationURL]) -> None
Handler for method 6. This method should be overridden by a subclass.
async def replace_url(client: RMCClient, url: StationURL, new: StationURL) -> None
Handler for method 7. This method should be overridden by a subclass.
async def send_report(client: RMCClient, report_id: int, data: bytes) -> None
Handler for method 8. This method should be overridden by a subclass.
ConnectionData
def __init__()
Creates a new ConnectionData instance. Required fields must be filled in manually.
The following fields are defined in this class:
station: StationURL
connection_id: int
NintendoLoginData
def __init__()
Creates a new NintendoLoginData instance. Required fields must be filled in manually.
The following fields are defined in this class:
token: str