Static Public Member Functions | Static Public Attributes
XmlRpc::XmlRpcSocket Class Reference

A platform-independent socket API. More...

#include <XmlRpcSocket.h>

List of all members.

Static Public Member Functions

static int accept (int socket)
 Accept a client connection request.
static bool bind (int socket, int port)
 Bind to a specified port.
static void close (int socket)
 Closes a socket.
static bool connect (int socket, std::string &host, int port)
 Connect a socket to a server (from a client)
static int get_port (int socket)
static int getError ()
 Returns last errno.
static std::string getErrorMsg ()
 Returns message corresponding to last error.
static std::string getErrorMsg (int error)
 Returns message corresponding to error.
static bool listen (int socket, int backlog)
 Set socket in listen mode.
static bool nbRead (int socket, std::string &s, bool *eof)
 Read text from the specified socket. Returns false on error.
static bool nbWrite (int socket, std::string &s, int *bytesSoFar)
 Write text to the specified socket. Returns false on error.
static bool setNonBlocking (int socket)
 Sets a stream (TCP) socket to perform non-blocking IO. Returns false on failure.
static bool setReuseAddr (int socket)
static int socket ()
 Creates a stream (TCP) socket. Returns -1 on failure.

Static Public Attributes

static bool s_use_ipv6_ = false

Detailed Description

A platform-independent socket API.

Definition at line 23 of file XmlRpcSocket.h.


Member Function Documentation

int XmlRpcSocket::accept ( int  socket) [static]

Accept a client connection request.

Definition at line 181 of file XmlRpcSocket.cpp.

bool XmlRpcSocket::bind ( int  socket,
int  port 
) [static]

Bind to a specified port.

Definition at line 143 of file XmlRpcSocket.cpp.

void XmlRpcSocket::close ( int  socket) [static]

Closes a socket.

Definition at line 107 of file XmlRpcSocket.cpp.

bool XmlRpcSocket::connect ( int  socket,
std::string &  host,
int  port 
) [static]

Connect a socket to a server (from a client)

Definition at line 200 of file XmlRpcSocket.cpp.

int XmlRpcSocket::get_port ( int  socket) [static]

Definition at line 371 of file XmlRpcSocket.cpp.

int XmlRpcSocket::getError ( ) [static]

Returns last errno.

Definition at line 341 of file XmlRpcSocket.cpp.

std::string XmlRpcSocket::getErrorMsg ( ) [static]

Returns message corresponding to last error.

Definition at line 353 of file XmlRpcSocket.cpp.

std::string XmlRpcSocket::getErrorMsg ( int  error) [static]

Returns message corresponding to error.

Definition at line 360 of file XmlRpcSocket.cpp.

bool XmlRpcSocket::listen ( int  socket,
int  backlog 
) [static]

Set socket in listen mode.

Definition at line 174 of file XmlRpcSocket.cpp.

bool XmlRpcSocket::nbRead ( int  socket,
std::string &  s,
bool *  eof 
) [static]

Read text from the specified socket. Returns false on error.

Definition at line 278 of file XmlRpcSocket.cpp.

bool XmlRpcSocket::nbWrite ( int  socket,
std::string &  s,
int *  bytesSoFar 
) [static]

Write text to the specified socket. Returns false on error.

Definition at line 311 of file XmlRpcSocket.cpp.

bool XmlRpcSocket::setNonBlocking ( int  socket) [static]

Sets a stream (TCP) socket to perform non-blocking IO. Returns false on failure.

Definition at line 121 of file XmlRpcSocket.cpp.

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.

Definition at line 133 of file XmlRpcSocket.cpp.

int XmlRpcSocket::socket ( ) [static]

Creates a stream (TCP) socket. Returns -1 on failure.

Definition at line 99 of file XmlRpcSocket.cpp.


Member Data Documentation

bool XmlRpcSocket::s_use_ipv6_ = false [static]

Definition at line 26 of file XmlRpcSocket.h.


The documentation for this class was generated from the following files:


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley
autogenerated on Tue Mar 7 2017 03:44:43