#include <serversocket.h>
|
| eServerSocket (int port, eMainloop *ml) |
|
| eServerSocket (std::string path, eMainloop *ml) |
|
virtual | ~eServerSocket () |
|
bool | ok () |
|
std::string | RemoteHost () |
|
int | Port () |
|
| eSocket (eMainloop *ml, int domain=AF_INET) |
|
| eSocket (int socket, int issocket, eMainloop *ml) |
|
virtual | ~eSocket () |
|
int | connectToHost (std::string hostname, int port) |
|
int | getDescriptor () |
|
int | writeBlock (const char *data, unsigned int len) |
|
int | setSocket (int socketfd, int issocket, eMainloop *ml) |
|
int | bytesToWrite () |
|
int | readBlock (char *data, unsigned int maxlen) |
|
int | bytesAvailable () |
|
bool | canReadLine () |
|
std::string | readLine () |
|
void | close () |
|
void | enableRead () |
|
void | disableRead () |
|
void | inject (const char *data, int len) |
|
int | state () |
|
|
virtual void | newConnection (int socket)=0 |
|
int | bind (int sockfd, struct sockaddr *addr, socklen_t addrlen) |
|
int | listen (int sockfd, int backlog) |
|
int | accept (int sockfd, struct sockaddr *addr, socklen_t *addrlen) |
|
◆ eServerSocket() [1/2]
eServerSocket::eServerSocket |
( |
int |
port, |
|
|
eMainloop * |
ml |
|
) |
| |
◆ eServerSocket() [2/2]
eServerSocket::eServerSocket |
( |
std::string |
path, |
|
|
eMainloop * |
ml |
|
) |
| |
◆ ~eServerSocket()
eServerSocket::~eServerSocket |
( |
| ) |
|
|
virtual |
◆ accept()
int eServerSocket::accept |
( |
int |
sockfd, |
|
|
struct sockaddr * |
addr, |
|
|
socklen_t * |
addrlen |
|
) |
| |
|
protected |
◆ bind()
int eServerSocket::bind |
( |
int |
sockfd, |
|
|
struct sockaddr * |
addr, |
|
|
socklen_t |
addrlen |
|
) |
| |
|
protected |
◆ listen()
int eServerSocket::listen |
( |
int |
sockfd, |
|
|
int |
backlog |
|
) |
| |
|
protected |
◆ newConnection()
virtual void eServerSocket::newConnection |
( |
int |
socket | ) |
|
|
protectedpure virtual |
◆ ok()
bool eServerSocket::ok |
( |
| ) |
|
◆ Port()
int eServerSocket::Port |
( |
| ) |
|
|
inline |
◆ RemoteHost()
std::string eServerSocket::RemoteHost |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: