From 6525baae022ea244e567e52487bd7a78984ff6a5 Mon Sep 17 00:00:00 2001 From: Jakub Sławiński Date: Mon, 31 May 2004 22:05:30 +0200 Subject: v0.5.4 - Fixed: default password incompatibilities - Modified: Server listening behaviour - Added: Module support for client's packet filtering - Modified: client behaviour after unsuccessful connection - Fixed: printing ipv6 addresses - Added: IP protocol family strict choice: 'ipv4' and 'ipv6' - Added: flow control / packet buffering - Fixed: signal handling - Fixed: client freeze in udp reverse mode with zlib enabled --- network.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'network.h') diff --git a/network.h b/network.h index 2dff6e0..1ce2ccb 100644 --- a/network.h +++ b/network.h @@ -39,9 +39,9 @@ typedef struct { SSL* ssl; } clifd; -int ip_listen(const char *host, const char *serv, socklen_t *addrlenp, const char *type); /* socket, bind, listen... */ -int ip_connect(const char *host, const char *serv, const char *type); /* socket, connect... */ -char* sock_ntop(const struct sockaddr* sa, socklen_t salen); /* return the hostname of connected user */ +int ip_listen(int* sockfd, const char *host, const char *serv, socklen_t *addrlenp, const char type); /* socket, bind, listen... */ +int ip_connect(int* sockfd, const char *host, const char *serv, const char type); /* socket, connect... */ +char* sock_ntop(const struct sockaddr* sa, socklen_t salen, char* namebuf, char* portbuf); /* return the IP of connected user */ int send_message(char type, clifd fd, unsigned char* buf, int amount); int get_message(char type, clifd fd, unsigned char* buf, int amount); -- cgit v1.1