- use dig before gethostbyname to resolve host names

This commit is contained in:
2018-08-09 09:10:10 +02:00
parent 04f9554f3d
commit 8de1fd4183
6 changed files with 59 additions and 80 deletions

View File

@ -65,7 +65,7 @@ struct Ascon {
char *sendTerminator; /**< terminator for sending messages */
char *replyTerminator; /**< (std) terminator list for reply. NULL is the special case CR, LF or CR/LF */
char *hostport; /**< host:port to connect */
in_addr_t ip; /**< the ip address */
char ip[16]; /**< the ip address (dotted numbers) */
pDynString errmsg; /**< error message */
double start; /**< unix time when read was started */
int noResponse; /**< no response expected */