version 1.10, 2020/02/16 21:11:02 |
version 1.11, 2020/02/19 20:57:10 |
|
|
get_address(char *host, in_port_t myport, isc_sockaddr_t *sockaddr) { |
get_address(char *host, in_port_t myport, isc_sockaddr_t *sockaddr) { |
int count; |
int count; |
isc_result_t result; |
isc_result_t result; |
isc_boolean_t is_running; |
|
|
|
is_running = isc_app_isrunning(); |
|
if (is_running) |
|
isc_app_block(); |
|
result = get_addresses(host, myport, sockaddr, 1, &count); |
result = get_addresses(host, myport, sockaddr, 1, &count); |
if (is_running) |
|
isc_app_unblock(); |
|
if (result != ISC_R_SUCCESS) |
if (result != ISC_R_SUCCESS) |
return (result); |
return (result); |
|
|