diff network.h @ 599:eeea75b8b6f3

Implement proxy user id setting.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 08 May 2014 16:14:09 +0300
parents f9fb2a96a0c9
children 4bae14092b78
line wrap: on
line diff
--- a/network.h	Mon Feb 10 22:59:13 2014 +0200
+++ b/network.h	Thu May 08 16:14:09 2014 +0300
@@ -81,6 +81,7 @@
         int type;
         int port;
         struct in_addr addr;
+        char *userid;
     } proxy;
 
     char *host;
@@ -112,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);
+int         nn_conn_set_proxy(nn_conn_t *conn, int type, int port, const char *host, const char *userid);
 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 *);