4# pragma warning( disable : 4786 )
24 std::ifstream infile(
"pngnow.png", std::ios::binary );
25 if ( infile.fail() ) infile.open(
"../pngnow.png", std::ios::binary );
26 if ( infile.fail() ) result =
"Could not open file pngnow.png";
34 char c = infile.get();
35 if ( infile.eof() )
break;
38 std::cerr <<
"Read " <<
n <<
" bytes from pngnow.png\n";
43int main(
int argc,
char* argv[] ) {
46 std::cerr <<
"Usage: TestBase64Server serverPort\n";
49 int port = atoi( argv[1] );
54 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