diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-04 22:57:18 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-04 22:57:18 +0000 |
commit | 1c9f45b4a41e5553c89393cd3228b8e8e9d6131b (patch) | |
tree | 2431f899730d091c2185e651184693d5f1853dce /src/core/net-nonblock.h | |
parent | e81fdd730752012a3b34af443226f50d4771cc54 (diff) | |
download | irssi-1c9f45b4a41e5553c89393cd3228b8e8e9d6131b.zip |
Use GIOChannel instead of sockets directly. Helps porting to win32 :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@962 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/net-nonblock.h')
-rw-r--r-- | src/core/net-nonblock.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/net-nonblock.h b/src/core/net-nonblock.h index 6e4e10f4..ced58eea 100644 --- a/src/core/net-nonblock.h +++ b/src/core/net-nonblock.h @@ -20,18 +20,19 @@ typedef struct { char *errorstr; } RESOLVED_NAME_REC; -typedef void (*NET_CALLBACK) (int, void *); +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, int pipe); +int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe); /* 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() */ -int net_gethostbyname_return(int pipe, RESOLVED_IP_REC *rec); +int net_gethostbyname_return(GIOChannel *pipe, RESOLVED_IP_REC *rec); /* Connect to server, call func when finished */ -int net_connect_nonblock(const char *server, int port, const IPADDR *my_ip, NET_CALLBACK func, void *data); +int net_connect_nonblock(const char *server, int port, const IPADDR *my_ip, + NET_CALLBACK func, void *data); /* Kill the resolver child */ void net_disconnect_nonblock(int pid); |