Inherits log4cxx::helpers::ObjectImpl.
Classes | |
class | ClazzSocket |
Public Member Functions | |
virtual const helpers::Class & | getClass () const |
const void * | cast (const helpers::Class &clazz) const |
bool | instanceof (const helpers::Class &clazz) const |
Socket (InetAddressPtr &address, int port) | |
Creates a stream socket and connects it to the specified port number at the specified IP address. | |
Socket (apr_socket_t *socket, apr_pool_t *pool) | |
~Socket () | |
size_t | write (ByteBuffer &) |
void | close () |
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. | |
Static Public Member Functions | |
static const helpers::Class & | getStaticClass () |
static const log4cxx::helpers::ClassRegistration & | registerClass () |
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.
Socket | ( | InetAddressPtr & | address, | |
int | port | |||
) |
Creates a stream socket and connects it to the specified port number at the specified IP address.
Socket | ( | apr_socket_t * | socket, | |
apr_pool_t * | pool | |||
) |
~Socket | ( | ) |
const void* cast | ( | const helpers::Class & | clazz | ) | const [inline, virtual] |
Implements Object.
void close | ( | ) |
Closes this socket.
virtual const helpers::Class& getClass | ( | ) | const [virtual] |
Reimplemented from Object.
InetAddressPtr getInetAddress | ( | ) | const |
Returns the value of this socket's address field.
int getPort | ( | ) | const |
Returns the value of this socket's port field.
static const helpers::Class& getStaticClass | ( | ) | [static] |
Reimplemented from Object.
bool instanceof | ( | const helpers::Class & | clazz | ) | const [inline, virtual] |
Implements Object.
static const log4cxx::helpers::ClassRegistration& registerClass | ( | ) | [static] |
Reimplemented from Object.
size_t write | ( | ByteBuffer & | ) |