diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-28 23:39:50 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-28 23:39:50 -0800 |
| commit | a1bc59aaeff1537f06a856f9ecfa23e9924cfad8 (patch) | |
| tree | e70ca331421f2505193e2712e61db6bbb9c1e46b /src/core/platform.h | |
| parent | ba6dbf45bd10d4be7f8e78b12d9499849b05d335 (diff) | |
| download | nng-a1bc59aaeff1537f06a856f9ecfa23e9924cfad8.tar.gz nng-a1bc59aaeff1537f06a856f9ecfa23e9924cfad8.tar.bz2 nng-a1bc59aaeff1537f06a856f9ecfa23e9924cfad8.zip | |
tcp listener: remove obsolete function prototypes
Diffstat (limited to 'src/core/platform.h')
| -rw-r--r-- | src/core/platform.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/core/platform.h b/src/core/platform.h index 424a62b1..aced3675 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -313,40 +313,6 @@ extern int nni_tcp_dialer_set( extern int nni_tcp_dialer_get( nni_tcp_dialer *, const char *, void *, size_t *, nni_type); -// nni_tcp_listener_init creates a new listener object, unbound. -extern int nni_tcp_listener_init(nni_tcp_listener **); - -// nni_tcp_listener_fini frees the listener and all associated resources. -// It implicitly closes the listener as well. -extern void nni_tcp_listener_fini(nni_tcp_listener *); - -// nni_tcp_listener_close closes the listener. This will unbind -// any bound socket, and further operations will result in NNG_ECLOSED. -extern void nni_tcp_listener_close(nni_tcp_listener *); - -// nni_tcp_listener_stop is close + waits for any operations to stop, -// so there won't be any further accepts after this. -extern void nni_tcp_listener_stop(nni_tcp_listener *); - -// nni_tcp_listener_listen creates the socket in listening mode, bound -// to the specified address. -extern int nni_tcp_listener_listen(nni_tcp_listener *, const nni_sockaddr *); - -// nni_tcp_listener_accept accepts in incoming connect, asynchronously. -// On success, the first (and only) output will be an nni_tcp_conn * -// associated with the remote peer. -extern void nni_tcp_listener_accept(nni_tcp_listener *, nni_aio *); - -// nni_tcp_listener_set sets an option on the listener. -extern int nni_tcp_listener_set( - nni_tcp_listener *, const char *, const void *, size_t, nni_type); - -// nni_tcp_listener_get gets an option from the listener. The most common -// use for this is to retrieve the setting of the NNG_OPT_TCP_LOCADDR -// address after binding to wild card port (0). -extern int nni_tcp_listener_get( - nni_tcp_listener *, const char *, void *, size_t *, nni_type); - // nni_resolv_item (and nni_resolv) are used to perform a DNS lookup. // The item is just a container for common arguments to the resolver. // The host and sockaddr pointers need to remain valid until the |
