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