mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
28 lines
571 B
C++
28 lines
571 B
C++
#ifndef INTERFACE_CUSTOMCLIENT_H
|
|
#define INTERFACE_CUSTOMCLIENT_H
|
|
|
|
#include "Object.h"
|
|
#include "Types.h"
|
|
|
|
class IPipe;
|
|
|
|
class IRunOtherCallback
|
|
{
|
|
public:
|
|
virtual void runOther() = 0;
|
|
};
|
|
|
|
class ICustomClient : public IObject
|
|
{
|
|
public:
|
|
virtual void Init(THREAD_ID pTID, IPipe *pPipe, const std::string& pEndpointName)=0;
|
|
|
|
virtual bool Run(IRunOtherCallback* run_other)=0;
|
|
virtual void ReceivePackets(IRunOtherCallback* run_other)=0;
|
|
|
|
virtual bool wantReceive(void){ return true; }
|
|
virtual bool closeSocket(void){ return true; }
|
|
};
|
|
|
|
#endif
|