UseConfirmableMessages Property
Whether to use confirmable message.
Syntax
ANSI (Cross Platform) int GetUseConfirmableMessages();
int SetUseConfirmableMessages(int bUseConfirmableMessages); Unicode (Windows) BOOL GetUseConfirmableMessages();
INT SetUseConfirmableMessages(BOOL bUseConfirmableMessages);
@property (nonatomic,readwrite,assign,getter=useConfirmableMessages,setter=setUseConfirmableMessages:) BOOL useConfirmableMessages; - (BOOL)useConfirmableMessages; - (void)setUseConfirmableMessages:(BOOL)newUseConfirmableMessages;
#define PID_COAP_USECONFIRMABLEMESSAGES 33 IPWORKSIOT_EXTERNAL void* IPWORKSIOT_CALL IPWorksIoT_CoAP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSIOT_EXTERNAL int IPWORKSIOT_CALL IPWorksIoT_CoAP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
TRUE
Remarks
This property specifies whether the class should send requests (if operating in client mode; i.e., when the Listening property is disabled) or responses (if operating in server mode; i.e., when the Listening property is enabled) using confirmable messages instead of unconfirmable messages.
Using confirmable messages increases reliability, since the class will automatically retransmit a message until it receives a confirmation from the remote host that the message was received. Note that the retransmission period is not infinite; eventually the class will assume that the message is undeliverable and time out the retransmission process.
Using non-confirmable messages reduces the amount of network traffic, but at the cost of reliability, since the class has no way to know whether a given message was received by the remote host, or lost in transit.
Data Type
Boolean