mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-08 21:16:39 +09:00
simple API to invoke the oned functionality, added constructor
git-svn-id: http://svn.opennebula.org/one/trunk@101 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
1 parent
73436c0c41
commit
f30f3bd7bd
1 file changed
+8
-1
+8
-1
@@ -22,6 +22,7 @@
|
||||
#include <xmlrpc-c/client_simple.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -43,7 +44,13 @@ public:
|
||||
* @param oneurl the ONE front-end to interact with, defaults to "localhost".
|
||||
* @param socket the socket where ONE listen to, defaults to 2633.
|
||||
*/
|
||||
OneClient(string oneurl="localhost",unsigned int socket=2633);
|
||||
OneClient(string oneurl="localhost",unsigned int socket=2633)
|
||||
{
|
||||
ostringstream oss;
|
||||
|
||||
oss << "http://" << oneurl << ":" << socket << "/RPC2";
|
||||
url=oss.str();
|
||||
};
|
||||
|
||||
~OneClient(){};
|
||||
|
||||
|
||||
Reference in new issue
Block a user