ADC Home > Reference Library > Reference > Networking > System Configuration Framework Reference
|
SCDynamicStoreCopyDHCPInfo |
Includes: |
The functions of the SCDynamicStoreCopyDHCPInfo API provide access to information returned by the DHCP or BOOTP server.
DHCPInfoGetLeaseStartTime |
CFDateRef DHCPInfoGetLeaseStartTime( CFDictionaryRef info);
info
Returns a non-NULL CFDateRef if lease start time information is
present; NULL if the information is not present or if the
configuration method is not DHCP.
The return value must NOT be released.
Returns a CFDateRef corresponding to the lease start time, if present.
DHCPInfoGetOptionData |
CFDataRef DHCPInfoGetOptionData( CFDictionaryRef info, UInt8 code);
info
code
Returns a non-NULL CFDataRef containing the option data;
NULL if the requested option data is not present.
The return value must NOT be released.
Returns a non-NULL CFDataRef containing the DHCP option data, if present.
SCDynamicStoreCopyDHCPInfo |
CFDictionaryRef SCDynamicStoreCopyDHCPInfo( SCDynamicStoreRef store, CFStringRef serviceID);
store
serviceID
Returns a dictionary containing DHCP information if successful;
NULL otherwise.
Use the DHCPInfoGetOption function to retrieve
individual options from the returned dictionary.
A non-NULL return value must be released using CFRelease().
Copies the DHCP information for the requested serviceID, or the primary service if serviceID == NULL.
|