Clients in a production environment are often behind a restrictive firewall. To connect to a server in the outside world this client must then connect via a proxy server. Sometimes the client even has to authenticate with the proxy with a user identifier and a password. ulxmlrpcpp supports both variants.
To turn on proxy usage within ulxmlrpcpp the following code is needed:
TcpIpConnection conn (false, host, port);
conn.setProxy("sonne", 8080);
HttpProtocol prot(&conn);
prot.setProxyAuthentication("proxyuser", "proxypassword");
| Tell the |
| Pass the |