25 lines
338 B
C++
25 lines
338 B
C++
#include "examples/ace/ttcp/common.h"
|
|
|
|
#include <assert.h>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
Options options;
|
|
if (parseCommandLine(argc, argv, &options))
|
|
{
|
|
if (options.transmit)
|
|
{
|
|
transmit(options);
|
|
}
|
|
else if (options.receive)
|
|
{
|
|
receive(options);
|
|
}
|
|
else
|
|
{
|
|
assert(0);
|
|
}
|
|
}
|
|
}
|
|
|