Poco::OSP

class ServiceEvent

File Information

Library: OSP
Package: Service
Header: Poco/OSP/ServiceEvent.h

Description

The ServiceEvent class holds information about an event caused by a change to a service registration.

Member Summary

Member Functions: operator =, service, what

Enumerations

EventKind

EV_SERVICE_REGISTERED

EV_SERVICE_UNREGISTERED

Constructors

ServiceEvent

ServiceEvent(
    const ServiceEvent & event
);

Creates the ServiceEvent by copying another one.

ServiceEvent

ServiceEvent(
    ServiceRef::Ptr pService,
    EventKind what
);

Creates the ServiceEvent.

Destructor

~ServiceEvent

~ServiceEvent();

Destroys the ServiceEvent.

Member Functions

operator =

ServiceEvent & operator = (
    const ServiceEvent & event
);

Assigns another ServiceEvent.

service inline

ServiceRef::ConstPtr service() const;

Returns the service that caused the event.

what inline

EventKind what() const;

Returns the reason of the event.

Securely control IoT edge devices from anywhere   Connect a Device