4 # pragma warning(disable:4786) // identifier was truncated in debug info 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";
50 int 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.
RPC method arguments and results are represented by Values.
int main(int argc, char *argv[])
void work(double msTime)
Process client requests for the specified time.
bool bindAndListen(int port, int backlog=5)
TestBase64(XmlRpcServer *s)
Abstract class representing a single RPC method.
A class to handle XML RPC requests.
TestBase64(XmlRpcServer *s)
std::vector< char > BinaryData