From b93d5759c9b39ff153a14d474d800cd981f7dc97 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 22 Jan 2017 02:32:32 -0800 Subject: Event notification via pollable FDs verified working. --- src/nng.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/nng.h') diff --git a/src/nng.h b/src/nng.h index 8dc3fedd..eb9a2d87 100644 --- a/src/nng.h +++ b/src/nng.h @@ -105,16 +105,16 @@ NNG_DECL void nng_unsetnotify(nng_socket, nng_notify *); // Note that these are edge triggered -- therefore the status indicated // may have changed since the notification occurred. // -// NNG_EV_CAN_RECV - A message is ready for receive. -// NNG_EV_CAN_SEND - A message can be sent. +// NNG_EV_CAN_RCV - A message is ready for receive. +// NNG_EV_CAN_SND - A message can be sent. // NNG_EV_ERROR - An error condition on the socket occurred. // NNG_EV_PIPE_ADD - A new pipe (connection) is added to the socket. // NNG_EV_PIPE_REM - A pipe (connection) is removed from the socket. // NNG_EV_ENDPT_ADD - An endpoint is added to the socket. // NNG_EV_ENDPT_REM - An endpoint is removed from the socket. #define NNG_EV_BIT(x) (1U << (x)) -#define NNG_EV_CAN_RECV NNG_EV_BIT(0) -#define NNG_EV_CAN_SEND NNG_EV_BIT(1) +#define NNG_EV_CAN_RCV NNG_EV_BIT(0) +#define NNG_EV_CAN_SND NNG_EV_BIT(1) #define NNG_EV_ERROR NNG_EV_BIT(2) #define NNG_EV_PIPE_ADD NNG_EV_BIT(3) #define NNG_EV_PIPE_REM NNG_EV_BIT(4) @@ -298,8 +298,8 @@ NNG_DECL int nng_pipe_close(nng_pipe); #define NNG_OPT_TRANSPORT NNG_OPT_SOCKET(15) #define NNG_OPT_LOCALADDR NNG_OPT_SOCKET(16) #define NNG_OPT_REMOTEADDR NNG_OPT_SOCKET(17) -#define NNG_OPT_RECVFD NNG_OPT_SOCKET(18) -#define NNG_OPT_SENDFD NNG_OPT_SOCKET(19) +#define NNG_OPT_RCVFD NNG_OPT_SOCKET(18) +#define NNG_OPT_SNDFD NNG_OPT_SOCKET(19) // XXX: TBD: priorities, socket names, ipv4only -- cgit v1.2.3-70-g09d2