diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-23 09:12:29 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-23 09:40:32 -0800 |
| commit | 3ed5d7e7c6bc995018ed9c3d63c18504f3983341 (patch) | |
| tree | ce7f482f04d8e56b4d77e1f58fec73d6606e5a64 /include | |
| parent | 8f29c19954b7e4f0e47036b37b36ab9cd386ad70 (diff) | |
| download | nng-3ed5d7e7c6bc995018ed9c3d63c18504f3983341.tar.gz nng-3ed5d7e7c6bc995018ed9c3d63c18504f3983341.tar.bz2 nng-3ed5d7e7c6bc995018ed9c3d63c18504f3983341.zip | |
listener: add listener_create_url and listen_url
Diffstat (limited to 'include')
| -rw-r--r-- | include/nng/nng.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h index 1423759f..020a3add 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -302,6 +302,7 @@ NNG_DECL int nng_pipe_notify(nng_socket, nng_pipe_ev, nng_pipe_cb, void *); // nn_bind(). The underlying endpoint is returned back to the caller in the // endpoint pointer, if it is not NULL. The flags are ignored at present. NNG_DECL int nng_listen(nng_socket, const char *, nng_listener *, int); +NNG_DECL int nng_listen_url(nng_socket, const nng_url *, nng_listener *, int); // nng_dial creates a dialing endpoint, with no special options, and // starts it dialing. Dialers have at most one active connection at a time @@ -322,6 +323,8 @@ NNG_DECL int nng_dialer_create_url(nng_dialer *, nng_socket, const nng_url *); // nng_listener_create creates a new listener, that is not yet started. NNG_DECL int nng_listener_create(nng_listener *, nng_socket, const char *); +NNG_DECL int nng_listener_create_url( + nng_listener *, nng_socket, const nng_url *); // nng_dialer_start starts the endpoint dialing. This is only possible if // the dialer is not already dialing. |
