XmlRpcSocket.h
Go to the documentation of this file.
1 #include "sick_scan/sick_scan_base.h" /* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2 // this file modified by Morgan Quigley on 22 Apr 2008.
3 // added features: server can be opened on port 0 and you can read back
4 // what port the OS gave you
5 
6 #ifndef _XMLRPCSOCKET_H_
7 #define _XMLRPCSOCKET_H_
8 //
9 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
10 //
11 #if defined(_MSC_VER)
12 # pragma warning(disable:4786) // identifier was truncated in debug info
13 #endif
14 
15 #ifndef MAKEDEPEND
16 # include <string>
17 #endif
18 
19 #include "xmlrpcpp/XmlRpcDecl.h"
20 
21 namespace XmlRpc {
22 
24  class XMLRPCPP_DECL XmlRpcSocket {
25  public:
26 
27  static bool s_use_ipv6_;
28 
30  static int socket();
31 
33  static void close(int socket);
34 
35 
37  static bool setNonBlocking(int socket);
38 
40  static bool nbRead(int socket, std::string& s, bool *eof);
41 
43  static bool nbWrite(int socket, std::string& s, int *bytesSoFar);
44 
45 
46  // The next four methods are appropriate for servers.
47 
50  static bool setReuseAddr(int socket);
51 
53  static bool bind(int socket, int port);
54 
55  static int get_port(int socket);
56 
58  static bool listen(int socket, int backlog);
59 
61  static int accept(int socket);
62 
63 
64 
66  static bool connect(int socket, std::string& host, int port);
67 
68 
70  static int getError();
71 
73  static std::string getErrorMsg();
74 
76  static std::string getErrorMsg(int error);
77  };
78 
79 } // namespace XmlRpc
80 
81 #endif
s
XmlRpcServer s
XmlRpc
sick_scan_base.h
XMLRPCPP_DECL
#define XMLRPCPP_DECL
Definition: XmlRpcDecl.h:53
error
def error(*args, **kwargs)


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:13