1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-10-05 19:18:01 +08:00
ULib/include/ulib/net/tcpsocket.h
stefanocasazza 1e58dc49d0 fix+sync
2018-04-27 19:27:14 +02:00

43 lines
822 B
C++

// ============================================================================
//
// = LIBRARY
// ULib - c++ library
//
// = FILENAME
// tcpsocket.h
//
// = AUTHOR
// Stefano Casazza
//
// ============================================================================
#ifndef ULIB_TCPSOCKET_H
#define ULIB_TCPSOCKET_H 1
#include <ulib/net/socket.h>
class U_EXPORT UTCPSocket : public USocket {
public:
UTCPSocket(bool bSocketIsIPv6 = false) : USocket(bSocketIsIPv6)
{
U_TRACE_CTOR(0, UTCPSocket, "%b", bSocketIsIPv6)
}
~UTCPSocket()
{
U_TRACE_DTOR(0, UTCPSocket)
}
// DEBUG
#if defined(U_STDCPP_ENABLE) && defined(DEBUG)
const char* dump(bool reset) const { return USocket::dump(reset); }
#endif
private:
U_DISALLOW_COPY_AND_ASSIGN(UTCPSocket)
};
#endif