diff options
author | Jakub Sławiński | 2004-05-31 22:05:30 +0200 |
---|---|---|
committer | Joshua Judson Rosen | 2014-07-17 21:14:58 +0200 |
commit | 6525baae022ea244e567e52487bd7a78984ff6a5 (patch) | |
tree | 21ac5cfe4c890f3100ce9f7e19be6ea5ac9a0fed /network.h | |
parent | Update copyright statements. (diff) | |
download | apf-6525baae022ea244e567e52487bd7a78984ff6a5.tar.gz |
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
Diffstat (limited to 'network.h')
-rw-r--r-- | network.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |