整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
47
network/NetworkSubsystem.h
Normal file
47
network/NetworkSubsystem.h
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue