#include <XmlRpcSocket.h>
Static Public Member Functions | |
| int | socket () |
| Creates a stream (TCP) socket. Returns -1 on failure. | |
| void | close (int socket) |
| Closes a socket. | |
| bool | setNonBlocking (int socket) |
| Sets a stream (TCP) socket to perform non-blocking IO. Returns false on failure. | |
| bool | nbRead (int socket, std::string &s, bool *eof) |
| Read text from the specified socket. Returns false on error. | |
| bool | nbWrite (int socket, std::string &s, int *bytesSoFar) |
| Write text to the specified socket. Returns false on error. | |
| bool | setReuseAddr (int socket) |
| Allow the port the specified socket is bound to to be re-bound immediately so server re-starts are not delayed. | |
| bool | bind (int socket, int port) |
| Bind to a specified port. | |
| bool | listen (int socket, int backlog) |
| Set socket in listen mode. | |
| int | accept (int socket) |
| Accept a client connection request. | |
| bool | connect (int socket, std::string &host, int port) |
| Connect a socket to a server (from a client). | |
| int | getError () |
| Returns last errno. | |
| std::string | getErrorMsg () |
| Returns message corresponding to last error. | |
| std::string | getErrorMsg (int error) |
| Returns message corresponding to error. | |
|
|
Allow the port the specified socket is bound to to be re-bound immediately so server re-starts are not delayed. Returns false on failure. |
1.3-rc3