nn::uds::CTR::DisallowToConnect Function

Syntax

nn::Result DisallowToConnect(
     bool isDisallowToReconnect = false
);

Arguments

Name Description
in isDisallowToReconnect When false, clients that have connected to the master once can re-connect.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Process was successful.
ResultNotInitialized The library is not initialized. Execute the nn::uds::Initialize function.
ResultInvalidState Not in an executable state. Returned when executed in a state other than master.
ResultWirelessOff Transitioned to wireless OFF mode. Re-initialization is required.
A value other than the above. Failed for reasons other than those given above.

Description

Disallows client nodes to connect to the network. Does not effect clients currently connected.

This connection denying feature was assumed for use when you want to deny new competing clients from connecting. When you want to allow connections once again, execute the AllowToConnect function. Only the master can run this function.

Revision History

2010/10/15
Initial version.

CONFIDENTIAL