jsonrpc-cpp-devel Mailing List for JsonRpc-Cpp
Brought to you by:
s-vincent
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(2) |
Aug
(5) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
(3) |
Feb
(9) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(4) |
| 2013 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
|
8
|
9
|
10
|
11
|
12
|
13
(1) |
14
|
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
|
29
|
30
|
31
|
|
|
|
|
|
From: Chris L. <chr...@gm...> - 2012-07-13 21:32:45
|
Hello,
I'm making a tool to remotely control a HTPC that runs XBMC. I want to
support both TCP and HTTP, but I noticed that for the derived clients,
TcpClient and HttpClient, the [ssize_t Send(const std::string& data)]
function is local to each derived class, and is not purely virtual from the
base Client class. I came into problems when I tried to construct the
clients from the base class depending on arguments supplied at runtime. For
example:
Json::Rpc::Client* client;
if(Args.getProto() == "tcp")
{
client = new Json::Rpc::TcpClient(Args.getHost(), Args.getPort());
} else if(Args.getProto() == "http")
{
client = new Json::Rpc::HttpClient(Args.getHost(), Args.getPort());
}
... builds queryStr ...
client->Send(queryStr); <--- This causes error: 'class Json::Rpc::Client'
has no member named 'Send'
I'm new to Jsonrpc-cpp, so maybe I'm having a brain fart and I'm not seeing
why Send(const std::string& data) is not purely virtual. Anyone else ran
into problems like this? I haven't had the time to see if I can patch up
the library and make it work, I may do that later this weekend.
Regards,
Chris
|