C H A P T E R 2
Using Network Setup
//If the cursor doesn’t stop at the end of the packed preference data, a data format error occurs.
if ( (cursor - ((UInt8 *) packedPref)) != packedPrefSize) goto prefDataErr;
return noErr;
prefDataErr: return paramErr;
}
Remote Access Notes
A Remote Access network connection entity has a class of kOTCfgClassNetworkConnection and a type of kOTCfgTypeRemote and typically contains the following preferences:
■kOTCfgRemoteConnectPref, which contains core connection preferences. For details, see OTCfgRemoteConnect (page 127).
■kOTCfgRemoteUserPref, which contains the user name. For details, see OTCfgRemoteUserPref in the section “Apple Remote Access Constants and Other Data Types” (page 163).
■kOTCfgRemotePasswordPref, which contains the user’s encrypted password. For details, see the sample code below and OTCfgRemotePassword (page 135).
■kOTCfgRemoteAddressPref, which contains the phone number to dial. For details, see OTCfgRemoteAddressPref in the section “Apple Remote Access Constants and Other Data Types” (page 163).
■kOTCfgRemoteDialingPref, which contains redial preferences. For details, see
OTCfgRemoteDialing (page 131).
■kOTCfgRemoteClientMiscPref, which controls the “dial on demand” feature of IPCP. For details, see OTCfgRemoteClientMisc (page 127).
■kOTCfgRemoteIPCPPref, which contains
■kOTCfgRemoteLCPPref, which contains
53 |