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:
Rubén S. Montero committed 2008-09-29 22:29:36 +00:00
1 parent 73436c0c41
commit f30f3bd7bd
1 file changed
+8 -1
+8 -1
View File
@@ -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(){};