log4cplus
2.1.0
|
This class implements server sockets. More...
#include <socket.h>
Public Member Functions | |
ServerSocket (unsigned short port, bool udp=false, bool ipv6=false, tstring const &host=tstring()) | |
ServerSocket (ServerSocket &&) LOG4CPLUS_NOEXCEPT | |
virtual | ~ServerSocket () |
ServerSocket & | operator= (ServerSocket &&) LOG4CPLUS_NOEXCEPT |
Socket | accept () |
void | interruptAccept () |
void | swap (ServerSocket &) |
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 &) |
Protected Attributes | |
std::array< std::ptrdiff_t, 2 > | interruptHandles |
Protected Attributes inherited from log4cplus::helpers::AbstractSocket | |
SOCKET_TYPE | sock |
SocketState | state |
int | err |
This class implements server sockets.
A server socket waits for requests to come in over the network. It performs some operation based on that request, and then possibly returns a result to the requester.
Definition at line 120 of file helpers/socket.h.
log4cplus::helpers::ServerSocket::ServerSocket | ( | unsigned short | port, |
bool | udp = false , |
||
bool | ipv6 = false , |
||
tstring const & | host = tstring() |
||
) |
log4cplus::helpers::ServerSocket::ServerSocket | ( | ServerSocket && | ) |
|
virtual |
Socket log4cplus::helpers::ServerSocket::accept | ( | ) |
void log4cplus::helpers::ServerSocket::interruptAccept | ( | ) |
ServerSocket& log4cplus::helpers::ServerSocket::operator= | ( | ServerSocket && | ) |
void log4cplus::helpers::ServerSocket::swap | ( | ServerSocket & | ) |
|
protected |
Definition at line 134 of file helpers/socket.h.