Свойство | Тип | Описание | |
---|---|---|---|
_conMessageQ | ArrayList | ||
_isDone | bool | ||
_minTimeoutSecs | uint | ||
_waitEvent | AutoResetEvent |
Метод | Описание | |
---|---|---|
AddToWaitQ ( AbstractCoAPMessage coapMsg ) : void |
Add message to wait queue
|
|
GetInUseMessageIDs ( ) : ArrayList |
Each CON/NON message is associated with a message ID. CON messages cannot be discarded unless ACK/RST is received or delivery attempt fails. This method tells us which message IDs are associated with pending CON messages
|
|
GetRequestPendingResponse ( UInt16 msgId ) : CoAPRequest |
Get the request message that was pending response
|
|
RemoveFromWaitQ ( UInt16 msgId ) : void |
Remove message from wait queue
|
|
Shutdown ( ) : void |
Shutdown the polling
|
|
TimedQueue ( uint minTimeoutSecs ) : System |
We start a thread here that keeps polling the confirmable messages It checks if the message timed-out, and if yes, raises the timeout event
|
Метод | Описание | |
---|---|---|
PollQ ( ) : void |
The thread procedure that continues to poll the queue for timeout
|
public AddToWaitQ ( AbstractCoAPMessage coapMsg ) : void | ||
coapMsg | AbstractCoAPMessage | AbstractCoAPMessage |
Результат | void |
public GetRequestPendingResponse ( UInt16 msgId ) : CoAPRequest | ||
msgId | UInt16 | The message Id corresponding to the message that needs to be extracted |
Результат | CoAPRequest |
public RemoveFromWaitQ ( UInt16 msgId ) : void | ||
msgId | UInt16 | The message Id corresponding to the message that needs to be removed |
Результат | void |
public TimedQueue ( uint minTimeoutSecs ) : System | ||
minTimeoutSecs | uint | What is the minimum timeout in seconds |
Результат | System |