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)
Static Public Member Functions
template<typename... Args> static bool write
(Socket &socket, Args &&... args)
Additional Inherited Members
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]
Referenced by write().
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.
References write().
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.
| Fri Jun 18 2021 | Version 2.0.6 |
