28 lines
589 B
C++
Executable File
28 lines
589 B
C++
Executable File
#pragma once
|
|
#include "XNUDPService_global.h"
|
|
#include <XNCore/XNServiceObject.h>
|
|
#include <string>
|
|
#include <memory>
|
|
|
|
struct XNUDPServicePrivate;
|
|
|
|
class XNUDPSERVICE_EXPORT XNUDPService : public XNServiceObject
|
|
{
|
|
XN_METATYPE(XNUDPService, XNServiceObject)
|
|
XN_DECLARE_PRIVATE(XNUDPService)
|
|
public:
|
|
explicit XNUDPService();
|
|
virtual ~XNUDPService();
|
|
|
|
protected:
|
|
XNUDPService(PrivateType *p);
|
|
|
|
public:
|
|
virtual void Initialize() override;
|
|
virtual void PrepareForExecute() override;
|
|
void HandleIncomingData();
|
|
void SendData(const std::any &data);
|
|
};
|
|
|
|
XNCLASS_PTR_DECLARE(XNUDPService)
|