Exemplo n.º 1
0
 /**
  * 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));
 }
Exemplo n.º 2
0
 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());
 }
Exemplo n.º 3
0
 /**
  * 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));
 }