nn::ir::CTR::Communicator::WaitConnection Member Functionstatic Result WaitConnection(); static Result WaitConnection( nn::fnd::TimeSpan sendReplyDelay );
WaitConnection( )
|
Waits for a connection request and then tries making an authenticated connection. |
WaitConnection(nn::fnd::TimeSpan)
|
Waits for a connection request and then tries making an authenticated connection. |
WaitConnection( )This function returns control before connection authentication with the partner is completed.
When a connection request is received, this function returns a connection reply to the partner CTR system and then transitions to the connected state. This function will wait until a connection request arrives. If you want to abort the process call the Disconnect function.
If the connection succeeds, this is signaled by the event returned by the GetConnectionStatusEvent function.
The system always waits after connection authentication. If data have been provided by the Send function, the system sends the data packets after it has received all incoming data and then waits again.
If the size of the region used to save incoming and outgoing packets—as passed to the Initialize function—is smaller than that defined by NECESSARY_BUFFER_SIZE_FOR_CONNECTION or if the size of the region used to manage packets is smaller than GetManagementSize(1), the connection cannot be authenticated and this function fails.
WaitConnection(nn::fnd::TimeSpan)When a connection request is received, waits to send a connection reply for at least the time specified by sendReplyDelay.
CONFIDENTIAL