This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Compare two node descriptors
#include <sys/netmgr.h> #define ND_NODE_CMP(a,b) ...
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The ND_NODE_CMP() macro compares two node descriptors.
#include <sys/neutrino.h> uint32_t nd1, nd2; if ( ND_NODE_CMP(nd1, nd2) == 0 ) { /* Same node */ ... } else { /* Different nodes */ ... }
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
netmgr_ndtostr(), netmgr_remote_nd(), netmgr_strtond()
Qnet Networking chapter of the Programmer's Guide
Qnet Networking chapter of the System Architecture guide