DNS Service Discovery Library Functions TXTRecordCreate(3DNS_SD)
NAME
TXTRecordCreate, TXTRecordDeallocate, TXTRecordSetValue,TXTRecordRemoveValue, TXTRecordGetLength, TXTRecordGet-
BytesPtr, TXTRecordContainsKey, TXTRecordGetValuePtr,TXTRecordGetCount, TXTRecordGetItemAtIndex - DNS TXT record
manipulation functionsSYNOPSIS
cc [ flag ... ] file ... -ldns_sd [ library ... ]
#include
void TXTRecordCreate(TXTRecordRef *txtRecord, uint16_t bufferLen,
void *buffer); void TXTRecordDeallocate(TXTRecordRef*txtRecord); DNSServiceErrorType txtRecord(TXTRecordRef *txtRecord,const char *key, uint8_t valueSize, const void *value);
DNSServiceErrorType TXTRecordRemoveValue(TXTRecordRef *txtRecord, const char *key);uint16_t TXTRecordGetLength(const TXTRecordRef *txtRecord);
const void *TXTRecordGetBytesPtr(const TXTRecordRef *txtRecord);
int *TXTRecordContainsKey(uint16_t *txtLen,
const void *txtRecord, const char *key);const void *TXTRecordGetValuePtr(uint16_t *txtLen,
const void *txtRecord, const char *key,uint8_t *valueLen);
uint16_t *TXTRecordGetCount(uint16_t *txtLen,
const void *txtRecord);DNSServiceErrorType TXTRecordGetItemAtIndex(uint16_t *txtLen,
const void *txtRecord, uint16_t *index,
uint16_t *keyBufLen, char *key,
uint8_t *valueLen, const void **value);
SunOS 5.11 Last change: 20 Aug 2007 1
DNS Service Discovery Library Functions TXTRecordCreate(3DNS_SD)
DESCRIPTION
These functions in the libdns_sd library allow applications
to create and to manipulate TXT resource records. TXT resource records enable applications to include service specific information, other than a host name and port number, as part of the service registration.ATTRIBUTES
See attributes(5) for description of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | Safe |
|_____________________________|_____________________________|
SEE ALSO
attributes(5)SunOS 5.11 Last change: 20 Aug 2007 2