p26001-store-acs-soc-fw-app/network/NetworkSubsystem.h
2026-09-28 21:33:04 +08:00

47 lines
1.2 KiB
C++

#ifndef __NETWORK_SUBSYSTEM__H__
#define __NETWORK_SUBSYSTEM__H__
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "Poco/Util/Application.h"
#include "util/Subsystem.h"
namespace Network
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
class NetworkSubsystem: public Util::Subsystem
{
public:
NetworkSubsystem();
~NetworkSubsystem();
virtual const char* name() const override;
protected:
virtual void initialize(Poco::Util::Application& app);
virtual void uninitialize();
public:
struct ZLStreamPushMessage
{
std::string appname;
std::string streamid;
short type;
ZLStreamPushMessage(const std::string& appname, const std::string& streamid, short type)
: appname(appname), streamid(streamid), type(type)
{
}
};
Poco::BasicEvent<ZLStreamPushMessage> ZLStreamPushMessageEvent;
private:
};
}
#endif