diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-02 13:57:53 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-02 14:47:50 -0700 |
| commit | 279180c1d07fc2c4c0bfa8f5a418cb02c4b87863 (patch) | |
| tree | b451ac7f845062674d6ab45eb5d530628d3ff47c /tests/nonblock.c | |
| parent | 9b27984d0e2da430b78a975e59f55c96de5f6056 (diff) | |
| download | nng-279180c1d07fc2c4c0bfa8f5a418cb02c4b87863.tar.gz nng-279180c1d07fc2c4c0bfa8f5a418cb02c4b87863.tar.bz2 nng-279180c1d07fc2c4c0bfa8f5a418cb02c4b87863.zip | |
NNG_OPT_RECVFD and NNG_OPT_SENDFD converted to functions.
These options are removed entirely, and their functionality is now
available via special functions, `nng_socket_get_send_poll_fd` and
`nng_socket_get_recv_poll_fd`, making these first class methods on
the socket.
This eliminates a bit of wasteful code, and provides type safety
for these methods.
Diffstat (limited to 'tests/nonblock.c')
| -rw-r--r-- | tests/nonblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nonblock.c b/tests/nonblock.c index 19174882..624c9233 100644 --- a/tests/nonblock.c +++ b/tests/nonblock.c @@ -35,7 +35,7 @@ repthr(void *arg) nng_listen(rep, addr, &l, NNG_FLAG_NONBLOCK); - nng_socket_get_int(rep, NNG_OPT_RECVFD, &ifd); + nng_socket_get_recv_poll_fd(rep, &ifd); fd = ifd; for (;;) { |
