log4cplus_helpers_Socket(3)

log4cplus::helpers::Socket(3) log4cplus log4cplus::helpers::Socket(3)

NAME

log4cplus::helpers::Socket - This class implements client sockets (also called just 'sockets').

SYNOPSIS

#include <socket.h>

Inherits log4cplus::helpers::AbstractSocket.

Public Member Functions


Socket ()
Socket (SOCKET_TYPE sock, SocketState state, int err)
Socket (const tstring &address, unsigned short port, bool udp=false, bool ipv6=false)
Socket (Socket &&) LOG4CPLUS_NOEXCEPT
virtual ~Socket ()
Socket & operator= (Socket &&) LOG4CPLUS_NOEXCEPT
virtual bool read (SocketBuffer &buffer)
virtual bool write (const SocketBuffer &buffer)
virtual bool write (const std::string &buffer)
virtual bool write (std::size_t bufferCount, SocketBuffer const *const *buffers)

Public Member Functions inherited from log4cplus::helpers::AbstractSocket
AbstractSocket ()
AbstractSocket (SOCKET_TYPE sock, SocketState state, int err)
AbstractSocket (AbstractSocket const &)=delete
AbstractSocket (AbstractSocket &&) LOG4CPLUS_NOEXCEPT
virtual ~AbstractSocket ()=0
virtual void close ()
Close socket. virtual bool isOpen () const
virtual void shutdown ()
AbstractSocket & operator= (AbstractSocket &&rhs) LOG4CPLUS_NOEXCEPT
void swap (AbstractSocket &)

Static Public Member Functions


template<typename... Args> static bool write (Socket &socket, Args &&... args)

Additional Inherited Members

Protected Attributes inherited from log4cplus::helpers::AbstractSocket
SOCKET_TYPE sock
SocketState state
int err

Detailed Description

This class implements client sockets (also called just 'sockets').

A socket is an endpoint for communication between two machines.

Definition at line 84 of file helpers/socket.h.

Constructor & Destructor Documentation

log4cplus::helpers::Socket::Socket ()

log4cplus::helpers::Socket::Socket (SOCKET_TYPE sock, SocketState state, int err)

log4cplus::helpers::Socket::Socket (const tstring & address, unsigned short port, bool udp = false, bool ipv6 = false)

log4cplus::helpers::Socket::Socket (Socket &&)

virtual log4cplus::helpers::Socket::~Socket () [virtual]

Member Function Documentation

Socket & log4cplus::helpers::Socket::operator= (Socket &&)

virtual bool log4cplus::helpers::Socket::read (SocketBuffer & buffer) [virtual]

virtual bool log4cplus::helpers::Socket::write (const SocketBuffer & buffer) [virtual]

virtual bool log4cplus::helpers::Socket::write (const std::string & buffer) [virtual]

template<typename... Args> static bool log4cplus::helpers::Socket::write (Socket & socket, Args &&... args) [inline], [static]

Definition at line 104 of file helpers/socket.h.

virtual bool log4cplus::helpers::Socket::write (std::size_t bufferCount, SocketBuffer const *const * buffers) [virtual]

Author

Generated automatically by Doxygen for log4cplus from the source code.

Mon Jun 5 2023 21:46:10 Version 2.0.7