mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-14 11:06:59 +01:00
problem: cannot check WS and WSS capability
Solution: add capability check to zmq_has
This commit is contained in:
parent
41b9af2c79
commit
977f137a83
@ -1480,6 +1480,14 @@ int zmq_has (const char *capability_)
|
|||||||
#if defined(ZMQ_BUILD_DRAFT_API)
|
#if defined(ZMQ_BUILD_DRAFT_API)
|
||||||
if (strcmp (capability_, "draft") == 0)
|
if (strcmp (capability_, "draft") == 0)
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
|
#if defined(ZMQ_HAVE_WS)
|
||||||
|
if (strcmp (capability_, "WS") == 0)
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
|
#if defined(ZMQ_HAVE_WSS)
|
||||||
|
if (strcmp (capability_, "WSS") == 0)
|
||||||
|
return true;
|
||||||
#endif
|
#endif
|
||||||
// Whatever the application asked for, we don't have
|
// Whatever the application asked for, we don't have
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user