nn::ir::CTR::Communicator::GetConnectionRole Member Function

Syntax

static ConnectionRole GetConnectionRole(
     void
);

Parameters

None.

Return Values

Returns a value indicating the local system's role in the connection process.

Description

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.

Revision History

2011/10/05
Removed unnecessary text.
2011/08/30
Initial version.

CONFIDENTIAL