nn::hio::CTR::SerialChannel::WaitHost Member Function

Syntax

#include <nn/hio.h>

Result WaitHost(
     bit32 attr = ATTRIBUTE_NONE
);

Arguments

Name Description
in attr Attribute during connection.
If set to ATTRIBUTE_NONE, the function blocks until a connection from the host is established.
If set to ATTRIBUTE_NO_WAIT, it returns the result of the operation without waiting for the connection from the host.

Return Values

Returns the result of the operation.

Description

Waits for a connection from the host.

If the connection succeeded, it returns a Result value equivalent to ResultConnected.

If ATTRIBUTE_NO_WAIT is specified but a connection has not yet been established, it returns a Result value equivalent to ResultNoConnected.

Revision History

2010/03/31
Initial version.

CONFIDENTIAL