Unregistered Event

Fires when a client has unregistered from notifications.

Syntax

ANSI (Cross Platform)
virtual int FireUnregistered(CoAPUnregisteredEventParams *e);
typedef struct {
const char *RemoteHost;
int RemotePort;
const char *URI;
const char *URIHost;
int URIPort;
const char *URIPath;
const char *URIQuery; int reserved; } CoAPUnregisteredEventParams; Unicode (Windows) virtual INT FireUnregistered(CoAPUnregisteredEventParams *e);
typedef struct {
LPCWSTR RemoteHost;
INT RemotePort;
LPCWSTR URI;
LPCWSTR URIHost;
INT URIPort;
LPCWSTR URIPath;
LPCWSTR URIQuery; INT reserved; } CoAPUnregisteredEventParams;
- (void)onUnregistered:(NSString*)remoteHost :(int)remotePort :(NSString*)URI :(NSString*)URIHost :(int)URIPort :(NSString*)URIPath :(NSString*)URIQuery;
#define EID_COAP_UNREGISTERED 8

virtual INT IPWORKSIOT_CALL FireUnregistered(LPSTR &lpszRemoteHost, INT &iRemotePort, LPSTR &lpszURI, LPSTR &lpszURIHost, INT &iURIPort, LPSTR &lpszURIPath, LPSTR &lpszURIQuery);

Remarks

This event fires anytime a client has unregistered itself from further notifications for the resource identified by URI. Refer to the StartObserving and SendNotification methods, as well as the Notification and Register events, for more information about observing resources and resource change notifications.

The RemoteHost parameter reflects the client's IP address or hostname.

The RemotePort parameter reflects the client's port.

The URI parameter identifies the resource that the client has stopped observing.

The URIHost, URIPort, URIPath, and URIQuery parameters are provided for additional convenience

Note: This event is only used when the class is operating in server mode (i.e., when the Listening property is enabled).

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 C++ Edition - Version 20.0 [Build 8265]