Main Page   Class Hierarchy   Compound List   File List   Compound Members  

XmlRpc::XmlRpcSocket Class Reference

A platform-independent socket API. More...

#include <XmlRpcSocket.h>

List of all members.

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.


Detailed Description

A platform-independent socket API.


Member Function Documentation

bool XmlRpcSocket::setReuseAddr int    socket [static]
 

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.


The documentation for this class was generated from the following files:
Generated on Thu Mar 6 11:32:58 2003 for XmlRpc++ by doxygen1.3-rc3