Library: OSP/WebEvent
Package: WebEvent
Header: Poco/OSP/WebEvent/WebEventServiceImpl.h
Direct Base Classes: WebEventService
All Base Classes: Poco::OSP::Service, WebEventService, Poco::RefCountedObject
Member Functions: addSubscriber, addSubscriberImpl, isA, notify, notifyImpl, receive, receiveImpl, removeSubscriber, removeSubscriberImpl, runMain, runWorker, send, sendImpl, shutdown, shutdownImpl, subscribe, subscribeImpl, type, unsubscribe, unsubscribeImpl, unwatchSocketImpl, watchSocketImpl
Inherited Functions: duplicate, isA, notify, referenceCount, release, type
typedef Poco::AutoPtr < WebEventServiceImpl > Ptr;
WebEventServiceImpl(
Poco::OSP::BundleContext::Ptr pContext
);
Creates the WebEventServiceImpl.
Destroys the WebEventServiceImpl.
bool isA(
const std::type_info & otherType
) const;
void notify(
const std::string & subjectName,
const std::string & data
);
const std::type_info & type() const;
void addSubscriber(
Poco::SharedPtr < Poco::Net::WebSocket > pWS
);
void addSubscriberImpl(
Poco::SharedPtr < Poco::Net::WebSocket > pWS
);
void notifyImpl(
const std::string & subjectName,
const std::string & data
);
void receive(
Poco::SharedPtr < Poco::Net::WebSocket > pWS
);
void receiveImpl(
Poco::SharedPtr < Poco::Net::WebSocket > pWS
);
void removeSubscriber(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
bool clientShutdown
);
void removeSubscriberImpl(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
bool clientShutdown
);
void runMain();
void runWorker();
void send(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
const std::string & message
);
void sendImpl(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
const std::string & message
);
void shutdown(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
Poco::UInt16 statusCode,
const std::string & statusMessage,
bool passive
);
void shutdownImpl(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
Poco::UInt16 statusCode,
const std::string & statusMessage,
bool passive
);
void subscribe(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
const std::set < std::string > & subjectNames
);
void subscribeImpl(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
const std::set < std::string > & subjectNames
);
void unsubscribe(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
const std::set < std::string > & subjectNames
);
void unsubscribeImpl(
Poco::SharedPtr < Poco::Net::WebSocket > pWS,
const std::set < std::string > & subjectNames
);
void unwatchSocketImpl(
const Poco::Net::Socket & socket
);
void watchSocketImpl(
const Poco::Net::Socket & socket
);