summaryrefslogtreecommitdiff
path: root/src/network.h
diff options
context:
space:
mode:
authorJakub Sławiński2005-11-03 20:37:56 +0100
committerJoshua Judson Rosen2014-07-17 21:15:00 +0200
commit63bbc710b23893742e5ccbd430f95bf2d29c2da6 (patch)
tree06d0585724cff8a4f1a7c052b5b89fd12c404094 /src/network.h
parentv0.7.2 (diff)
downloadapf-63bbc710b23893742e5ccbd430f95bf2d29c2da6.tar.gz
v0.7.4
- Fixed: sockets in CLOSE_WAIT state left by afclient - Added: --localname and --localport options - Added: --localdesname option - Added: kicking user in 'opening' state - Fixed: info about kicked user - Fixed: TERM signal handling - Fixed: id lost after reconnection - Fixed: printing wrong client name in 'SSL_accept failed (timeout)' message - Fixed: ignored 'certificate' and 'key' options from config file - Added: config files for afclient - Modified: some options in afserver config file
Diffstat (limited to 'src/network.h')
-rw-r--r--src/network.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network.h b/src/network.h
index 6c7e640..4702d1f 100644
--- a/src/network.h
+++ b/src/network.h
@@ -37,7 +37,8 @@
#include <openssl/ssl.h>
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... */
+int ip_connect(int* sockfd, const char *host, const char *serv, const char type,
+ const char *lhost, const char *lserv); /* socket[, bind], connect... */
char* sock_ntop(const struct sockaddr* sa, socklen_t salen, char* namebuf, char* portbuf, char type); /* return the IP of connected user */
int SSL_writen(SSL* fd, unsigned char* buf, int amount);