RequestId Property

The ID of the current DNS request.

Syntax

ANSI (Cross Platform)
int GetRequestId();
int SetRequestId(int iRequestId); Unicode (Windows) INT GetRequestId();
INT SetRequestId(INT iRequestId);
@property (nonatomic,readwrite,assign,getter=requestId,setter=setRequestId:) int requestId;
- (int)requestId;
- (void)setRequestId:(int)newRequestId;
#define PID_DNS_REQUESTID 19

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_DNS_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_DNS_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

1

Remarks

This property is the identifier of the request that generated the current response values. Each time the class makes a DNS query, it generates a unique request identifier to track the response.

If a custom value is needed for RequestId, the property must be set before sending a request. The class increments RequestId automatically after sending each request.

NOTE: The class fails with an error when a value that is not between 1 and 32,767 is specified.

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]