Skip to content
Snippets Groups Projects
Commit 7dacf158 authored by brutzman's avatar brutzman
Browse files

javadoc

parent 08a37cca
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,8 @@ import java.net.*;
* the bottom of the program, and does not repeat itself.
* The program exits.
*
* @author mcgredo, brutzman
* @author mcgredo
* @author brutzman
*/
public class TcpExample1Telnet
{
......
......@@ -18,7 +18,8 @@ import java.net.*;
* <code>telnet ipOfServersLaptop 2317</code>
*
* And have that machine display the socket pairs received.
* @author mcgredo, brutzman
* @author mcgredo
* @author brutzman
*/
public class TcpExample2ConnectionCounting
{
......
......@@ -12,6 +12,7 @@ import java.net.*;
* show different socket pairs for each time the loop iterates.
*
* @author mcgredo
* @author brutzman
*/
public class TcpExample3Client {
......
......@@ -8,6 +8,7 @@ import java.net.*;
* But it will in some others.
*
* @author mcgredo
* @author brutzman
*/
public class HttpWebPageSource {
......
......@@ -4,14 +4,16 @@ import java.io.*;
import java.net.*;
/**
* Looks a lot like UdpReceiver. Start this before launching MulticastSender.
*
* @author mcgredo
* @author brutzman
*/
public class MulticastReceiver {
public static final String MULTICAST_ADDRESS = "239.1.2.15";
public static final int DESTINATION_PORT = 1718;
/** How many routers can be crossed */
/** Time to live: how many router-decrement levels can be crossed */
public static final int TTL = 10;
public static void main(String[] args)
......
......@@ -4,15 +4,16 @@ import java.io.*;
import java.net.*;
/**
* Looks a lot like a UDP sender.
* Looks a lot like UdpSender. Start this after launching MulticastReceiver.
*
* @author mcgredo
* @author brutzman
*/
public class MulticastSender {
public static final String MULTICAST_ADDRESS = "239.1.2.15"; // within reserved multicast address range
public static final int DESTINATION_PORT = 1718;
/** How many routers can be crossed */
/** Time to live: how many router-decrement levels can be crossed */
public static final int TTL = 10;
@SuppressWarnings("SleepWhileInLoop")
......
......@@ -5,9 +5,12 @@ import java.net.*;
/**
* An example of receiving UDP packets. Since very often both the
* sender and receiver are on the same host we use different ports
* for each. This prevents complaints from the localhost.
* for each. This prevents collision complaints from the localhost.
*
* Start this before launching UdpSender.
*
* @author mcgredo
* @author brutzman
*/
public class UdpReceiver
{
......
......@@ -9,7 +9,10 @@ import java.net.*;
* if both the sending and receiving sockets try to use the same port
* on the same host.
*
* Start this before launching UdpReceiver.
*
* @author mcgredo
* @author brutzman
*/
public class UdpSender
{
......
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