nn::nex::VirtualSocketDriver::RegisterVirtualNetwork Member Function

Syntax

static qBool RegisterVirtualNetwork(
     VirtualNetwork * pVirtualNetwork
);

Parameters

Name Description
in pVirtualNetwork A pointer to an instance of the derived class inheriting from VirtualNetwork that you want to register.

Return Values

Returns false if an instance has been registered already. Otherwise, returns true.

Description

Registers an instance of the derived class that inherits from VirtualNetwork and changes the mode to local communication mode.

Be sure to create an instance of the class derived from VirtualNetwork and call this function to register the instance before you create a NetZ instance.

When you switch to local communication mode you cannot conduct Internet communications.

To return to Internet communication mode, first call UnregisterVirtualNetwork and then create a NetZ instance again.

Revision History

2011/01/27
Initial version.

CONFIDENTIAL