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]);
void execute(XmlRpcValue ¶ms, XmlRpcValue &result)
Execute the method. Subclasses must provide a definition for this method.
TestBase64(XmlRpcServer *s)
Abstract class representing a single RPC method.
A class to handle XML RPC requests.
bool bindAndListen(int port, int backlog=5)
void work(double msTime)
Process client requests for the specified time.
RPC method arguments and results are represented by Values.
std::vector< char > BinaryData