User's Manual
60
11 Manual protection in a network
SmartKey NET supports the standard commands of the SP model and a set of commands slaved to the network: OPEN,
ACCESS, CLOSE and USER NUMBER.
All the functions explained in the following paragraphs were used in the Windows program smartdem.c, which is
located in directory Sdk\Manual_Protection\Client_Windows_Libraries_And_Examples\GenericWin32Dll e
Sdk\Manual_Protection\Client_Windows_Libraries_And_Examples\GenericWin32Obj. The program can be compiled
with any C compiler.
11.1 Open mode
The OPEN Mode is employed by the user to activate communication with SmartKey. The OPEN operation must be
carried out before all operations for accessing the dongle's memory.
The OPEN command generates a special password, named Net Password, which must be used in all the subsequent
commands.
In the first byte of the Data field is reported the type of the protocol used in the connection. If you want to prevent the
use of the LOCAL protocol, you can check this byte. Generally this is useful to force the use of the SmartKey server
for license management.
To use this command with the Map protection you must also specify the Map code in the Data field as described in the
Map chapter.
The exchange of information is organized like this:
Models NET
Input NET_COMMAND ‘O’
LABEL Label
PASSWORD Password
Output NET_PASS Net Password
DATA[0] Protocol type used:
= 0, LOCAL
= 1, IPX
= 2, ANP
= 3, TCPIP
STATUS Status
==0 Success
!=0 Error
Table 37
Exchange of information for OPEN MODE
11.2 Access mode
The ACCESS mode enables actual access to the dongle. It is selected with the Label, which must always be passed
before carrying out any standard dongle interrogation operation. This mode requires the NET-Password, which
identifies the Client requesting access and the Label identifying the dongle to which access is required.
The exchange of information is organized like this:
Models NET
Input NET_COMMAND ‘A’
NET_PASS Net Password
COMMAND SmartKey Command