18 #ifndef _LOG4CXX_HELPERS_SOCKET_H
19 #define _LOG4CXX_HELPERS_SOCKET_H
43 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(SocketPrivate, m_priv)
44 Socket(LOG4CXX_PRIVATE_PTR(SocketPrivate) priv);
56 #if 15 < LOG4CXX_ABI_VERSION
62 virtual void setNonBlocking(
bool newValue) = 0;
76 static SocketUniquePtr
create(InetAddressPtr& address,
int port);
87 #if 15 < LOG4CXX_ABI_VERSION
88 #define LOG4CXX_16_VIRTUAL_SPECIFIER override
90 #define LOG4CXX_16_VIRTUAL_SPECIFIER
A byte buffer.
Definition: bytebuffer.h:34
base class for java-like objects.
Definition: object.h:102
Abstract base class for an outgoing socket connection.
Definition: socket.h:41
int getPort() const
Returns the value of this socket's port field.
static SocketUniquePtr create(InetAddressPtr &address, int port)
Create a concrete instance of this class.
virtual void close()=0
Close this socket.
InetAddressPtr getInetAddress() const
Returns the value of this socket's address field.
LOG4CXX_UNIQUE_PTR_DEF(Socket)
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:154
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:37
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:148
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:142