Corrected cmd args in SCTP Sample clients
This commit is contained in:
parent
b268f0b333
commit
942f05d336
@ -86,7 +86,7 @@ public class NioSctpEchoClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Parse options.
|
// Parse options.
|
||||||
final String host = "localhost";
|
final String host = args[0];
|
||||||
final int port = Integer.parseInt(args[1]);
|
final int port = Integer.parseInt(args[1]);
|
||||||
final int firstMessageSize;
|
final int firstMessageSize;
|
||||||
if (args.length == 3) {
|
if (args.length == 3) {
|
||||||
|
@ -77,16 +77,16 @@ public class OioSctpEchoClient {
|
|||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
// Print usage if no argument is specified.
|
// Print usage if no argument is specified.
|
||||||
/* if (args.length < 2 || args.length > 3) {
|
if (args.length < 2 || args.length > 3) {
|
||||||
System.err.println(
|
System.err.println(
|
||||||
"Usage: " + OioSctpEchoClient.class.getSimpleName() +
|
"Usage: " + OioSctpEchoClient.class.getSimpleName() +
|
||||||
" <host> <port> [<first message size>]");
|
" <host> <port> [<first message size>]");
|
||||||
return;
|
return;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
// Parse options.
|
// Parse options.
|
||||||
final String host = "localhost";
|
final String host = args[0];
|
||||||
final int port = 2556;
|
final int port = Integer.parseInt(args[1]);
|
||||||
final int firstMessageSize;
|
final int firstMessageSize;
|
||||||
if (args.length == 3) {
|
if (args.length == 3) {
|
||||||
firstMessageSize = Integer.parseInt(args[2]);
|
firstMessageSize = Integer.parseInt(args[2]);
|
||||||
|
Loading…
Reference in New Issue
Block a user