log4cplus
2.1.0
|
This class implements client sockets (also called just "sockets"). More...
#include <socket.h>
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. More... | |
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 |
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.
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 |
|
virtual |
|
virtual |
|
virtual |
|
inlinestatic |
Definition at line 104 of file helpers/socket.h.
|
virtual |