4# pragma warning(disable:4786)
29 std::ifstream infile(
"pngnow.png", std::ios::binary);
31 infile.open(
"../pngnow.png", std::ios::binary);
33 result =
"Could not open file pngnow.png";
39 char c = infile.get();
40 if (infile.eof())
break;
43 std::cerr <<
"Read " <<
n <<
" bytes from pngnow.png\n";
50int main(
int argc,
char* argv[])
53 std::cerr <<
"Usage: TestBase64Server serverPort\n";
56 int port = atoi(argv[1]);
61 s.bindAndListen(port);
TestBase64(XmlRpcServer *s)
void execute(XmlRpcValue ¶ms, XmlRpcValue &result)
Execute the method. Subclasses must provide a definition for this method.
TestBase64(XmlRpcServer *s)
XmlRpcServerMethod(std::string const &name, XmlRpcServer *server=0)
Constructor.
A class to handle XML RPC requests.
RPC method arguments and results are represented by Values.
std::vector< char > BinaryData