1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-10-05 19:18:01 +08:00
ULib/include/ulib/net/server/client_image_rdb.h
stefanocasazza b5184ba45e sync
2018-07-27 18:11:02 +02:00

61 lines
1.2 KiB
C++

// ============================================================================
//
// = LIBRARY
// ULib - c++ library
//
// = FILENAME
// client_image_rdb.h - Handles accepted TCP/IP connections from RDB server
//
// = AUTHOR
// Stefano Casazza
//
// ============================================================================
#ifndef U_CLIENT_IMAGE_RDB_H
#define U_CLIENT_IMAGE_RDB_H 1
#include <ulib/net/tcpsocket.h>
#include <ulib/net/server/client_image.h>
/**
* @class URDBClientImage
*
* @brief Handles accepted TCP/IP connections from URDBServer
*/
class URDB;
class U_EXPORT URDBClientImage : public UClientImage<UTCPSocket> {
public:
URDBClientImage() : UClientImage<UTCPSocket>()
{
U_TRACE_CTOR(0, URDBClientImage, "")
}
virtual ~URDBClientImage()
{
U_TRACE_DTOR(0, URDBClientImage)
}
// DEBUG
#if defined(U_STDCPP_ENABLE) && defined(DEBUG)
const char* dump(bool reset) const;
#endif
protected:
static URDB* rdb;
// define method VIRTUAL of class UEventFd
virtual int handlerRead() U_DECL_FINAL;
private:
U_DISALLOW_COPY_AND_ASSIGN(URDBClientImage)
friend class URDBServer;
};
#endif