|
Apache Log4cxx
Version 2.0.0
|
Abstract base class for an outgoing socket connection. More...
#include <socket.h>
Public Member Functions | |
| virtual | ~Socket () |
| virtual size_t | write (ByteBuffer &)=0 |
| virtual void | setNonBlocking (bool newValue)=0 |
Use newValue for the behaviour when the network buffer (on an accepted socket connection) is full. | |
| virtual void | open ()=0 |
| Open this socket. | |
| virtual bool | is_open ()=0 |
| Is this available for use? | |
| virtual void | close ()=0 |
| Close 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. | |
| void | setAttributes (const InetAddressPtr &newAddress, int newPort) |
Use newAddress and newPort as the destination. | |
| 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 (const InetAddressPtr &address, int port, const LogString &concreteClassName={}) |
| Create a concrete instance of this class. | |
Protected Member Functions | |
| Socket (LOG4CXX_PRIVATE_PTR(SocketPrivate) priv) | |
Abstract base class for an outgoing socket connection.
A socket is an endpoint for communication between two network connected machines or processes.
|
protected |
|
virtual |
|
pure virtual |
Close this socket.
|
static |
Create a concrete instance of this class.
| 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 |
Is this available for use?
|
pure virtual |
Open this socket.
| void log4cxx::helpers::Socket::setAttributes | ( | const InetAddressPtr & | newAddress, |
| int | newPort ) |
Use newAddress and newPort as the destination.
|
pure virtual |
Use newValue for the behaviour when the network buffer (on an accepted socket connection) is full.
When true, an exception is thrown if the write would block.
|
pure virtual |