Skip to content
Snippets Groups Projects
Commit 694d8dd4 authored by Terry D. Norbraten's avatar Terry D. Norbraten
Browse files

Merge origin/master

parents 2a7cbd7d e1797f16
No related branches found
No related tags found
No related merge requests found
......@@ -8,11 +8,16 @@ import java.net.Socket;
import java.util.Scanner;
/**
*
* This client attempts to connect to a desired server. If the client is unable
* to connect then it exits the program. Enter 'quit' to the command line at any
* time to exit.
* @author tbavlsik
*/
public class BavlsikClient {
/**
* Localhost address.
*/
public final static String LOCALHOST = "0:0:0:0:0:0:0:1"; //Local host
/**
......
......@@ -11,7 +11,7 @@ import java.util.Scanner;
/**
* This client program establishes a socket connection to the {@link LennonHW2DispatchServer},
* then plays a random number guessing game.
* No fancy footwork here, it is pretty simple and similar to {@link TcpExample3Client}.
* No fancy footwork here, it is pretty simple and similar to {TcpExample3Client}.
*
* see TcpExample4DispatchServer
* see TcpExample4HandlerThread
......
......@@ -15,7 +15,7 @@ import java.util.Random;
* if the server can't respond to a connection for several seconds.
* </p>
* <p>
* Warning: do not run this class! It is created and used automatically by {@link TcpExample4DispatchServer} at run time.
* Warning: do not run this class! It is created and used automatically by {@link LennonHW2DispatchServer} at run time.
* </p>
*
* see TcpExample4Client
......
......@@ -52,7 +52,7 @@ public class AllPduReceiver
}
else
{
System.out.println("Usage: AllPduReceiver <multicast group> <port>");
System.out.println("Usage: AllPduReceiver <multicast group address> <port>");
System.out.println("Default: AllPduReceiver " + DEFAULT_MULTICAST_ADDRESS + " " + DEFAULT_MULTICAST_PORT);
multicastSocket = new MulticastSocket(DEFAULT_MULTICAST_PORT);
multicastInetAddress = InetAddress.getByName(DEFAULT_MULTICAST_ADDRESS);
......
......@@ -541,13 +541,13 @@ public class AllPduSender
if (args.length == 2)
{
System.out.println("Usage: AllPduSender <multicast group> <port>");
System.out.println("Usage: AllPduSender <multicast group address> <port>");
System.out.println("Actual: AllPduSender " + multicastInetAddress.getHostAddress() + " " + port);
allPduSender = new AllPduSender(args[0], Integer.parseInt(args[1]));
}
else
{
System.out.println("Usage: AllPduSender <multicast group> <port>");
System.out.println("Usage: AllPduSender <multicast group address> <port>");
System.out.println("Default: AllPduSender " + DEFAULT_MULTICAST_ADDRESS + " " + DEFAULT_MULTICAST_PORT);
allPduSender = new AllPduSender(DEFAULT_MULTICAST_ADDRESS, DEFAULT_MULTICAST_PORT);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment