// Copyright (c) 2001 David Muse // See the file COPYING for more information #include #include #include #include #ifdef RUDIMENTS_NAMESPACE using namespace rudiments; #endif int main(int argc, const char **argv) { if (argc<3) { printf("usage: inetclntbench [buffer size] [bytesperiteration] [iterations]\n"); exit(0); } uint32_t buffersize= charstring::toUnsignedInteger(argv[1]); uint32_t bytesperiteration= charstring::toUnsignedInteger(argv[2]); uint32_t iterations= charstring::toUnsignedInteger(argv[3]); char *bytes=new char[bytesperiteration]; if (!bytes) { printf("buffer allocation failed\n"); exit(0); } for (uint32_t i=0; i