18#ifndef _LOG4CXX_HELPERS_SOCKET_H
19#define _LOG4CXX_HELPERS_SOCKET_H
46 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(SocketPrivate, m_priv)
47 Socket(LOG4CXX_PRIVATE_PTR(SocketPrivate) priv);
68 static SocketUniquePtr
create(InetAddressPtr& address,
int port);
A byte buffer.
Definition bytebuffer.h:34
base class for java-like objects.
Definition object.h:106
int getPort() const
Returns the value of this socket's port field.
static SocketUniquePtr create(InetAddressPtr &address, int port)
virtual void close()=0
Closes this socket.
InetAddressPtr getInetAddress() const
Returns the value of this socket's address field.
virtual size_t write(ByteBuffer &)=0
Socket(LOG4CXX_PRIVATE_PTR(SocketPrivate) priv)
LOG4CXX_UNIQUE_PTR_DEF(DatagramSocket)
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:158
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition object.h:39
#define END_LOG4CXX_CAST_MAP()
Definition object.h:152
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:146