Declare the type of DNS name resolution callback function.

Syntax

typedef void (*tpfAppResolveCb)(
  unsigned char *pu8DomainName,
  unsigned long u32ServerIP
);

Parameters

pu8DomainName
[in] Requested domain name.
u32ServerIP
[in] DNS resolved IP address.

Return value

 None

Remarks

Declare the type of callback function specified in the pfAppResolveCb parameter of the RegSocketCallbackSc function.
When the gethostbyname function requests name resolution by DNS, the result is returned to the callback function.

Requirements

Header file:
lib.h
Library file:
libSTARTUPOPH5000.a

Last updated: 2020/11/26