From 3ed5d7e7c6bc995018ed9c3d63c18504f3983341 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 23 Nov 2024 09:12:29 -0800 Subject: listener: add listener_create_url and listen_url --- include/nng/nng.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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. -- cgit v1.2.3-70-g09d2