Apple Network Setup manual OTCfgRemoteServer, configCount, configIDs1

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 136
Image 136
OTCfgRemoteServer

C H A P T E R 4

Network Setup Protocol Structures and Data Types

struct OTCfgRemotePassword { UInt8 data[256];

};

typedef struct OTCfgRemotePassword OTCfgRemotePassword;

data

The encrypted password. Call OTCfgEncrypt (page 93) to

 

encrypt the password.

The preference type for this preference is kOTCfgRemotePasswordPref, which is defined as 'pass'.

OTCfgRemoteServer

The OTCfgRemoteServer structure stores an array of port configuration IDs used to locate the configuration for a particular port.

struct OTCfgRemoteServer {

UInt32

version;

SInt16

configCount;

SInt16

configIDs[1];

};

version

Depending how the preference was constructed, version

 

may be kOTCfgRemoteDefaultVersion or

 

kOTCfgRemoteAcceptedVersion. When reading the version

 

field, accept either value. When writing the version field,

 

set it to kOTCfgRemoteDefaultVersion.

configCount

The number of active Remote Access server configurations.

 

Must be 1 for the personal server.

configIDs

Array of port configuration IDs. For the personal server,

 

there can be only one port configuration ID whose value is

 

zero.

The preference type for this preference is kOTCfgRemoteServerPref, which is defined as 'srvr'.

136Protocol Structures

Page 136
Image 136
Apple Network Setup manual OTCfgRemoteServer, configCount, configIDs1