static int use_rs = 1;
static int use_async;
static int verify;
-static int flags;
+static int flags = MSG_DONTWAIT;
static int custom;
static int iterations = 1;
static int transfer_size = 1000;
{
size_str(test_name, size);
sprintf(test_name, "%s_lat", test_name);
- flags |= MSG_DONTWAIT;
transfer_count = 1;
transfer_size = size;
iterations = size_to_count(transfer_size);
{
size_str(test_name, size);
sprintf(test_name, "%s_bw", test_name);
- flags |= MSG_DONTWAIT;
iterations = 1;
transfer_size = size;
transfer_count = size_to_count(transfer_size);
case 'a':
use_async = 1;
break;
+ case 'b':
+ flags &= ~MSG_DONTWAIT;
+ no_delay = 0;
+ break;
case 'n':
flags |= MSG_DONTWAIT;
break;
use_rs = 0;
} else if (!strncasecmp("async", optarg, 5)) {
use_async = 1;
+ } else if (!strncasecmp("block", optarg, 5)) {
+ flags &= ~MSG_DONTWAIT;
+ no_delay = 0;
} else if (!strncasecmp("nonblock", optarg, 8)) {
flags |= MSG_DONTWAIT;
} else if (!strncasecmp("verify", optarg, 6)) {
printf("\t[-T test_option]\n");
printf("\t s|sockets - use standard tcp/ip sockets\n");
printf("\t a|async - asynchronous operation\n");
+ printf("\t b|blocking - use blocking calls\n");
printf("\t n|nonblocking - use nonblocking calls\n");
printf("\t v|verify - verify data\n");
exit(1);