Barracuda Application Server C/C++ Reference
NO
Response codes returned by function SMQ_getMessage

Detailed Description

Collaboration diagram for Response codes returned by function SMQ_getMessage:

Macros

#define SMQ_SUBACK   -20000
 SMQ_subscribe response message received via SMQ_getMessage. More...
 
#define SMQ_CREATEACK   -20001
 SMQ_create response message received via SMQ_getMessage. More...
 
#define SMQ_CREATESUBACK   -20002
 SMQ_createsub response message received via SMQ_getMessage. More...
 
#define SMQ_SUBCHANGE   -20003
 Change notification event (from observed tid). More...
 
#define SMQ_TIMEOUT   -20004
 The SMQ_getMessage call timed out.
 

Macro Definition Documentation

◆ SMQ_CREATEACK

#define SMQ_CREATEACK   -20001

SMQ_create response message received via SMQ_getMessage.

  • SMQ::ptid is set to the created Topic ID.
  • SMQ::status is set to zero (0) if the request was accepted and a negative value if the request was denied.
  • the 'msg' out parameter in SMQ_getMessage is set to the optional server's authentication response message if the request was denied.

◆ SMQ_CREATESUBACK

#define SMQ_CREATESUBACK   -20002

SMQ_createsub response message received via SMQ_getMessage.

  • SMQ::ptid is set to the created Subtopic ID.
  • SMQ::status is set to zero (0) if the request was accepted and a negative value if the request was denied.

◆ SMQ_SUBACK

#define SMQ_SUBACK   -20000

SMQ_subscribe response message received via SMQ_getMessage.

  • SMQ::ptid is set to the subscribed Topic ID.
  • SMQ::status is set to zero (0) if the request was accepted and a negative value if the request was denied.
  • the 'msg' out parameter in SMQ_getMessage is set to the optional server's authentication response message if the request was denied.

◆ SMQ_SUBCHANGE

#define SMQ_SUBCHANGE   -20003

Change notification event (from observed tid).

Observe events are initiated via SMQ_observe.

  • SMQ::ptid is set to the observed Topic ID.
  • SMQ::status is set to the number of clients subscribed to the topic.