5 // Definition of non-inline non-template functions
7 //#include "testclient.hh"
8 //#include "testclient.ih"
12 #include "Socket/TCPSocketHandle.hh"
13 #include "Utils/MicroTime.hh"
15 //#include "testclient.mpp"
17 ///////////////////////////////cc.p////////////////////////////////////////
19 int main(int argc, char** argv)
21 satcom::lib::TCPv4ClientSocketHandle handle (argv[1]);
22 handle.write(argv[2]);
23 handle.write(" HTTP/1.1\r\n");
25 handle.write("Host: ");
26 handle.write(argv[3]);
31 satcom::lib::MicroTime offset = satcom::lib::now();
33 size += handle.read().size();
34 std::cout << satcom::lib::now()-offset << " " << size << "\n";
38 ///////////////////////////////cc.e////////////////////////////////////////
40 //#include "testclient.mpp"