diff network.h @ 602:4bae14092b78

Add parameters (unused for now) for proxy password etc. in case SOCKS 5 support is ever added.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 20 May 2014 01:04:30 +0300
parents eeea75b8b6f3
children 37ab4725e4f9
line wrap: on
line diff
--- a/network.h	Tue May 20 00:09:45 2014 +0300
+++ b/network.h	Tue May 20 01:04:30 2014 +0300
@@ -81,7 +81,7 @@
         int type;
         int port;
         struct in_addr addr;
-        char *userid;
+        char *userid, *passwd;
     } proxy;
 
     char *host;
@@ -113,7 +113,7 @@
     void (*errfunc)(nn_conn_t *conn, const char *msg),
     void (*msgfunc)(nn_conn_t *conn, const char *msg));
 
-int         nn_conn_set_proxy(nn_conn_t *conn, int type, int port, const char *host, const char *userid);
+int         nn_conn_set_proxy(nn_conn_t *conn, int type, int port, const char *host, const char *userid, const char *passwd);
 int         nn_conn_open(nn_conn_t *conn, const int port, const char *host);
 void        nn_conn_close(nn_conn_t *);
 void        nn_conn_reset(nn_conn_t *);