Apache Log4cxx Version 1.1.0
|
#include <socket.h>
Public Member Functions | |
virtual | ~Socket () |
virtual size_t | write (ByteBuffer &)=0 |
virtual void | close ()=0 |
Closes this socket. | |
InetAddressPtr | getInetAddress () const |
Returns the value of this socket's address field. | |
int | getPort () const |
Returns the value of this socket's port field. | |
Public Member Functions inherited from log4cxx::helpers::Object | |
virtual | ~Object () |
virtual const helpers::Class & | getClass () const =0 |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
Static Public Member Functions | |
static SocketUniquePtr | create (InetAddressPtr &address, int port) |
Protected Member Functions | |
Socket (LOG4CXX_PRIVATE_PTR(SocketPrivate) priv) | |
This class implements client sockets (also called just "sockets"). A socket is an endpoint for communication between two machines.
The actual work of the socket is performed by an instance of the SocketImpl class. An application, by changing the socket factory that creates the socket implementation, can configure itself to create sockets appropriate to the local firewall.
|
protected |
|
virtual |
|
pure virtual |
Closes this socket.
|
static |
InetAddressPtr log4cxx::helpers::Socket::getInetAddress | ( | ) | const |
Returns the value of this socket's address field.
int log4cxx::helpers::Socket::getPort | ( | ) | const |
Returns the value of this socket's port field.
|
pure virtual |