diff options
author | Timo Sirainen <cras@irssi.org> | 2002-11-28 15:39:39 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-11-28 15:39:39 +0000 |
commit | 5b60b859d45feaa5504a196d77a5a4a318130493 (patch) | |
tree | 3576cd621b6fd9f8782196e6927645f3379cc82e /src/core/net-nonblock.h | |
parent | c67ea66b148b8a1cccb55d63b5434b3ab753badc (diff) | |
download | irssi-5b60b859d45feaa5504a196d77a5a4a318130493.zip |
/SET resolve_reverse_lookup to do reverse lookups for server when
/connecting. Patch by c0ffee.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3027 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/net-nonblock.h')
-rw-r--r-- | src/core/net-nonblock.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/net-nonblock.h b/src/core/net-nonblock.h index a0e5cddf..32cfac70 100644 --- a/src/core/net-nonblock.h +++ b/src/core/net-nonblock.h @@ -9,6 +9,7 @@ typedef struct { int errlen; /* error text length */ char *errorstr; /* error string - dynamically allocated, you'll need to free() it yourself unless it's NULL */ + char *host4, *host6; /* dito */ } RESOLVED_IP_REC; typedef struct { @@ -24,7 +25,8 @@ typedef void (*NET_CALLBACK) (GIOChannel *, void *); typedef void (*NET_HOST_CALLBACK) (RESOLVED_NAME_REC *, void *); /* nonblocking gethostbyname(), PID of the resolver child is returned. */ -int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe); +int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe, + int reverse_lookup); /* Get host's name, call func when finished */ int net_gethostbyaddr_nonblock(IPADDR *ip, NET_HOST_CALLBACK func, void *data); /* get the resolved IP address. returns -1 if some error occured with read() */ |