Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Require a client program for JSON RPC in C
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Arman Khalatyan  
View profile  
 More options Sep 4 2012, 4:47 am
From: Arman Khalatyan <arm2...@googlemail.com>
Date: Tue, 4 Sep 2012 10:47:14 +0200
Local: Tues, Sep 4 2012 4:47 am
Subject: Re: [json-rpc] Require a client program for JSON RPC in C
Hi,
I just  using c++ spirit from boost library to parse json. It is quite neat.

Arman.

On Mon, Sep 3, 2012 at 12:21 PM, Krishna Chaitanya Sanapala

<chaitul...@gmail.com> wrote:
> Hi Team,

> Iam new to JSON RPC. I donno whether there is a JSON RPC implementation in
> C. Its fine If its written in CPP.

> What I am trying to do is rewriting the following code below which is a
> JSON RPC client written in Java. into either C++ or C.

>  1 public addConfig_snippet() throws IOException  {
>  2    final File socketFile = new File("/home/socket.json");
>  3    Integer rc = -1;
>  4    AFUNIXSocket sock = AFUNIXSocket.newInstance();
>  5    try {
>  6        sock.connect(new AFUNIXSocketAddress(socketFile));
>  7    } catch (AFUNIXSocketException e) {
>  8        throw e;
>  9    }
> 10    OutputStream os = sock.getOutputStream();
> 11    Object[] argx = {"host-host", "192.168.0.102",
> 12                     "10.10.10.10", "leftfirewall=yes"};
> 13 JsonRpcClient jrpc = new JsonRpcClient();
> 14 jrpc.writeRequest("connect", argx, os, "id");
> 15 os.flush();
> 16 os.close();
> 17 }

> Experts in the team, please respond . Thanks

> --
> You received this message because you are subscribed to the Google Groups
> "JSON-RPC" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/json-rpc/-/LE2Ptxp94QYJ.
> To post to this group, send email to json-rpc@googlegroups.com.
> To unsubscribe from this group, send email to
> json-rpc+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/json-rpc?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.