TXTRecordContainsKey(_:_:_:)
Allows you to determine if a given TXT Record contains a specified key.
Declaration
func TXTRecordContainsKey(_ txtLen: UInt16, _ txtRecord: UnsafeRawPointer!, _ key: UnsafePointer<CChar>!) -> Int32Parameters
- txtLen:
The size of the received TXT Record.
- txtRecord:
Pointer to the received TXT Record bytes.
- key:
A null-terminated ASCII string containing the key name.
Return Value
Returns 1 if the TXT Record contains the specified key. Otherwise, it returns 0.