Mercurial > hg > nnchat
diff libnnchat.h @ 360:b465a17ffa47
Finally fix handling of long packets.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 23 Jun 2011 10:37:11 +0300 |
parents | c01e42fc9adb |
children | 88ac689d11bc |
line wrap: on
line diff
--- a/libnnchat.h Thu Jun 23 10:11:45 2011 +0300 +++ b/libnnchat.h Thu Jun 23 10:37:11 2011 +0300 @@ -91,7 +91,7 @@ char buf[NN_CONNBUF_SIZE + 16]; char *ptr; - ssize_t got; + ssize_t got, total; } nn_conn_t; @@ -107,6 +107,7 @@ int nn_conn_set_proxy(nn_conn_t *conn, int type, int port, const char *host); 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 *); int nn_conn_pull(nn_conn_t *); BOOL nn_conn_send_buf(nn_conn_t *, const char *buf, const size_t len); BOOL nn_conn_send_msg(nn_conn_t *, const char *user, const char *fmt, ...);