diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-25 11:03:06 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-25 11:03:06 -0800 |
| commit | 2cf6c5b96de05ca3870495f615b23e1fcdd3c4ca (patch) | |
| tree | 7f7c96adc773e94fe057081b40f7a8b5b31508fe /src/core/endpt.h | |
| parent | b7188678e1fb7399afd11faaea3d537bf52f6923 (diff) | |
| download | nng-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/endpt.h')
| -rw-r--r-- | src/core/endpt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/endpt.h b/src/core/endpt.h index 64935c4c..71d3ff59 100644 --- a/src/core/endpt.h +++ b/src/core/endpt.h @@ -33,9 +33,9 @@ struct nng_endpt { extern int nni_endpt_create(nni_endpt **, nni_socket *, const char *); extern void nni_endpt_destroy(nni_endpt *); -extern int nni_endpt_dial(nni_endpt *, nni_pipe **); extern int nni_endpt_listen(nni_endpt *); extern int nni_endpt_accept(nni_endpt *, nni_pipe **); extern void nni_endpt_close(nni_endpt *); +extern int nni_endpt_dial(nni_endpt *, int); #endif // CORE_ENDPT_H |
