comparison network.h @ 423:6727fec3c326

Rename nn_conn_send_msg() to nn_conn_send_msg_v() and add new nn_conn_send_msg().
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2012 11:09:48 +0300
parents 8263cb88556a
children 691400f1c9bb
comparison
equal deleted inserted replaced
422:8eb2839a565c 423:6727fec3c326
114 int nn_conn_open(nn_conn_t *conn, const int port, const char *host); 114 int nn_conn_open(nn_conn_t *conn, const int port, const char *host);
115 void nn_conn_close(nn_conn_t *); 115 void nn_conn_close(nn_conn_t *);
116 void nn_conn_reset(nn_conn_t *); 116 void nn_conn_reset(nn_conn_t *);
117 int nn_conn_pull(nn_conn_t *); 117 int nn_conn_pull(nn_conn_t *);
118 BOOL nn_conn_send_buf(nn_conn_t *, const char *buf, const size_t len); 118 BOOL nn_conn_send_buf(nn_conn_t *, const char *buf, const size_t len);
119 BOOL nn_conn_send_msg(nn_conn_t *, const char *user, const char *fmt, ...); 119 BOOL nn_conn_send_msg(nn_conn_t *, const char *user, const char *str);
120 BOOL nn_conn_send_msg_v(nn_conn_t *, const char *user, const char *fmt, ...);
120 BOOL nn_conn_check(nn_conn_t *); 121 BOOL nn_conn_check(nn_conn_t *);
121 122
122 123
123 BOOL nn_conn_buf_check(nn_conn_t *conn, size_t n); 124 BOOL nn_conn_buf_check(nn_conn_t *conn, size_t n);
124 BOOL nn_conn_buf_skip(nn_conn_t *conn, size_t n); 125 BOOL nn_conn_buf_skip(nn_conn_t *conn, size_t n);