/** * Compare message contents to specified zero-terminated C string. * @return like @c memcmp */ ZMQMESSAGE_DLL_PUBLIC inline int msgcmp(zmq::message_t& message, const char* str) { return msgcmp(message, str, strlen(str)); }
ZMQMESSAGE_DLL_PUBLIC inline int msgcmp(zmq::message_t& message, const T& str, typename Private::EnableIf<Private::IsStr<T>::value>::type* = 0) { return msgcmp(message, str.data(), str.length()); }
/** * Compare message contents to specified zero-terminated C string. * @return like @c memcmp */ inline int msgcmp(zmq::message_t& message, const char* str) { return msgcmp(message, str, strlen(str)); }