/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Utilities/JobInfoSvc/JobInfoSvc-00-00-02/xmlrpc++0.7/src/XmlRpcSocket.h

Go to the documentation of this file.
00001 #ifndef _XMLRPCSOCKET_H_
00002 #define _XMLRPCSOCKET_H_
00003 //
00004 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
00005 //
00006 #if defined(_MSC_VER)
00007 # pragma warning(disable:4786)    // identifier was truncated in debug info
00008 #endif
00009 
00010 #ifndef MAKEDEPEND
00011 # include <string>
00012 #endif
00013 
00014 namespace XmlRpc {
00015 
00017   class XmlRpcSocket {
00018   public:
00019 
00021     static int socket();
00022 
00024     static void close(int socket);
00025 
00026 
00028     static bool setNonBlocking(int socket);
00029 
00031     static bool nbRead(int socket, std::string& s, bool *eof);
00032 
00034     static bool nbWrite(int socket, std::string& s, int *bytesSoFar);
00035 
00036 
00037     // The next four methods are appropriate for servers.
00038 
00041     static bool setReuseAddr(int socket);
00042 
00044     static bool bind(int socket, int port);
00045 
00047     static bool listen(int socket, int backlog);
00048 
00050     static int accept(int socket);
00051 
00052 
00054     static bool connect(int socket, std::string& host, int port);
00055 
00056 
00058     static int getError();
00059 
00061     static std::string getErrorMsg();
00062 
00064     static std::string getErrorMsg(int error);
00065   };
00066 
00067 } // namespace XmlRpc
00068 
00069 #endif

Generated on Tue Nov 29 23:14:44 2016 for BOSS_7.0.2 by  doxygen 1.4.7