nn::ir::CTR::Communicator::GetConnectionRole Member Functionstatic ConnectionRole GetConnectionRole( void );
None.
Gets the connection role.
If connection was established by executing the RequireConnection function, this function returns CONNECTION_ROLE_TO_REQUIRE.
If connection was established by executing the WaitConnection function, this function returns CONNECTION_ROLE_TO_WAIT.
With the AutoConnection function, if this system was the partner that made the connection request and thereby established the connection, this function returns CONNECTION_ROLE_TO_REQUIRE. If, on the other hand, this system was the partner that accepted the connection, this function returns CONNECTION_ROLE_TO_WAIT.
CONFIDENTIAL