Poco::DNSSD::Bonjour

class EventLoop

File Information

Library: DNSSD/Bonjour
Package: Implementation
Header: Poco/DNSSD/Bonjour/EventLoop.h

Description

The EventLoop class monitors all sockets used by Bonjour (for the connection between the client and the daemon) in a thread and drives the Bonjour machinery.

Inheritance

Direct Base Classes: Poco::Runnable

All Base Classes: Poco::Runnable

Member Summary

Member Functions: add, lock, remove, removeImpl, run, shutdown, stop, unlock

Inherited Functions: run

Types

ScopedLock

typedef Poco::ScopedLock < EventLoop > ScopedLock;

Enumerations

Anonymous

EVENTLOOP_TIMEOUT = 250

Constructors

EventLoop

EventLoop();

Creates the EventLoop.

Destructor

~EventLoop virtual

~EventLoop();

Destroys the EventLoop.

Member Functions

add

void add(
    DNSServiceRef sdRef
);

Adds the reference to the eventloop, monitoring it for data.

lock inline

void lock();

Locks the internal mutex.

remove

void remove(
    DNSServiceRef sdRef
);

Removes and destroys the DNSServiceRef.

shutdown

void shutdown();

Cleans up and frees all DNSServiceRefs.

Must be called after the event loop thread has been stopped.

stop inline

void stop();

Requests to stop event loop processing.

unlock inline

void unlock();

Unlocks the internal mutex.

removeImpl protected

void removeImpl(
    DNSServiceRef sdRef
);

run protected virtual

void run();

Securely control IoT edge devices from anywhere   Connect a Device