Module: nintendo.nex.nattraversal
Provides a client and server for the NATTraversalProtocol. This page was generated automatically from nattraversal.proto.
class NATTraversalClient
The client for the NATTraversalProtocol.
class NATTraversalServer
The server for the NATTraversalProtocol.
NATTraversalClient
def __init__(client: RMCClient / HppClient)
Creates a new NATTraversalClient.
async def request_probe_initiation(target_urls: list[StationURL]) -> None
Calls method 1 on the server.
async def initiate_probe(station_to_probe: StationURL) -> None
Calls method 2 on the server.
async def request_probe_initiation_ext(target_urls: list[StationURL], station_to_probe: StationURL) -> None
Calls method 3 on the server.
async def report_nat_traversal_result(cid: int, result: bool) -> None
Calls method 4 on the server.
async def report_nat_properties(natm: int, natf: int, rtt: int) -> None
Calls method 5 on the server.
async def get_relay_signature_key() -> RMCResponse
Calls method 6 on the server. The RMC response has the following attributes:
mode: int
time: DateTime
address: str
port: int
address_type: int
game_server_id: int
async def report_nat_traversal_result_detail(cid: int, result: bool, detail: int, rtt: int) -> None
Calls method 7 on the server.
NATTraversalServer
def __init__()
Creates a new NATTraversalServer.
async def logout(client: RMCClient) -> None
Called whenever a client is disconnected. May be overridden by a subclass.
async def request_probe_initiation(client: RMCClient, target_urls: list[StationURL]) -> None
Handler for method 1. This method should be overridden by a subclass.
async def initiate_probe(client: RMCClient, station_to_probe: StationURL) -> None
Handler for method 2. This method should be overridden by a subclass.
async def request_probe_initiation_ext(client: RMCClient, target_urls: list[StationURL], station_to_probe: StationURL) -> None
Handler for method 3. This method should be overridden by a subclass.
async def report_nat_traversal_result(client: RMCClient, cid: int, result: bool) -> None
Handler for method 4. This method should be overridden by a subclass.
async def report_nat_properties(client: RMCClient, natm: int, natf: int, rtt: int) -> None
Handler for method 5. This method should be overridden by a subclass.
async def get_relay_signature_key(client: RMCClient) -> RMCResponse
Handler for method 6. This method should be overridden by a subclass. The RMC response must have the following attributes:
mode: int
time: DateTime
address: str
port: int
address_type: int
game_server_id: int
async def report_nat_traversal_result_detail(client: RMCClient, cid: int, result: bool, detail: int, rtt: int) -> None
Handler for method 7. This method should be overridden by a subclass.