summaryrefslogtreecommitdiff
path: root/src/core/socket.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-25 11:03:06 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-25 11:03:06 -0800
commit2cf6c5b96de05ca3870495f615b23e1fcdd3c4ca (patch)
tree7f7c96adc773e94fe057081b40f7a8b5b31508fe /src/core/socket.h
parentb7188678e1fb7399afd11faaea3d537bf52f6923 (diff)
downloadnng-2cf6c5b96de05ca3870495f615b23e1fcdd3c4ca.tar.gz
nng-2cf6c5b96de05ca3870495f615b23e1fcdd3c4ca.tar.bz2
nng-2cf6c5b96de05ca3870495f615b23e1fcdd3c4ca.zip
New dial/listen API. Dialing might work now.
In order to give control over synchronous vs. async dialing, we provide a flag to indicate synchronous dialing is desired. (Hmm. Should we reverse the default sense?) We extend listen to have the same flag. Logic is moved to endpt.c since dialing is really and endpoint specific operation. There are other minor related bug fixes here too.
Diffstat (limited to 'src/core/socket.h')
-rw-r--r--src/core/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/socket.h b/src/core/socket.h
index a31e09e5..4e1ea166 100644
--- a/src/core/socket.h
+++ b/src/core/socket.h
@@ -51,5 +51,7 @@ extern int nni_socket_setopt(nni_socket *, int, const void *, size_t);
extern int nni_socket_getopt(nni_socket *, int, void *, size_t *);
extern int nni_socket_recvmsg(nni_socket *, nni_msg **, nni_time);
extern int nni_socket_sendmsg(nni_socket *, nni_msg *, nni_time);
+extern int nni_socket_dial(nni_socket *, const char *, nni_endpt **, int);
+extern int nni_socket_listen(nni_socket *, const char *, nni_endpt **, int);
#endif // CORE_SOCKET_H