Apache log4cxx  Version 0.11.0
log4cxx::helpers::Socket Class Reference

#include <socket.h>

Inheritance diagram for log4cxx::helpers::Socket:
log4cxx::helpers::ObjectImpl log4cxx::helpers::Object

Public Member Functions

 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)
 
size_t write (ByteBuffer &)
 
void close ()
 Closes this socket. More...
 
InetAddressPtr getInetAddress () const
 Returns the value of this socket's address field. More...
 
int getPort () const
 Returns the value of this socket's port field. More...
 
- Public Member Functions inherited from log4cxx::helpers::ObjectImpl
void addRef () const
 
void releaseRef () const
 
- Public Member Functions inherited from log4cxx::helpers::Object
virtual bool instanceof (const Class &clazz) const =0
 
virtual const void * cast (const Class &clazz) const =0
 

Additional Inherited Members

- Protected Attributes inherited from log4cxx::helpers::ObjectImpl
unsigned int volatile ref
 

Detailed Description

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.

Member Function Documentation

◆ close()

void log4cxx::helpers::Socket::close ( )

Closes this socket.

◆ getInetAddress()

InetAddressPtr log4cxx::helpers::Socket::getInetAddress ( ) const

Returns the value of this socket's address field.

◆ getPort()

int log4cxx::helpers::Socket::getPort ( ) const

Returns the value of this socket's port field.


The documentation for this class was generated from the following file: