0

C/C++ Development using XML-RPC in Linux

Posted by Joys of Programming on in libxmlrpc, XML-RPC

If you want to work with XML-RPC, you must first install xmlrpc-c libraries. But if you are a developer and want to develop softwares using xmlrpc-c libraries, you must install the development packages. For ubuntu/linux The header files will be available in /usr/include/xmlrpc-c and the libraries will be available in /usr/lib.

Tags: , , , ,

 
0

How to Install XML-RPC in Linux (Ubuntu)?

Posted by Joys of Programming on in C/C++, libxmlrpc, XML-RPC

To work with XML-RPC in Linux, you must install the xmlrpc-c libraries. In ubuntu, it is available as libxmlrpc-c3 package. More about the Ubuntu package libxmlrpc-c3 can be found here.

Tags: , ,

 
0

json_object_get_array: Access an array JSON object

Posted by Joys of Programming on in C/C++, JSON, json-c, Linux

json_object_get_array() is used to access an array within a  json object. JSON contains key:value pairs, where value can be an array. The values within an array can also be an array, integer, boolean, double. Let’s compile the program. If you fail any compilation issues, refer the post. On executing the program, we get the following [...]

Tags:

 
3

json_object_object_get: Get a json object

Posted by Joys of Programming on in C/C++, JSON, json-c, Linux

json_object_object_get() is used to get the json object. JSON contains key:value pairs. The value can be an array, integer, boolean, double. It can also be a json object. That means to access the values within the json object, we must recursively go through json objects. The following program shows this Let’s compile the program. If [...]

Tags: , , ,

 
0

json_object_get_double: Get double value of json object

Posted by Joys of Programming on in C/C++, JSON, json-c, Linux

json_object_get_double() is used to get the double value of json object. The function takes a json_object as input and returns a double value. Let’s compile the program. If you fail any compilation issues, refer the post. On executing the program, we get the following output The input to the program was

Tags:

 
4

Curl: Copying the Webpage contents to Memory buffer

Posted by Joys of Programming on in C/C++, Curl, Web

The webpage contents can be copied to a file or standard output using curl. But in most of the cases, you will need to process the data after downloading the web contents. This can also be done using curl. The CURLOPT_WRITEDATA option must be pointed to the pointer where you want to copy the data. [...]

Tags: , , ,

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.