Browse Source

changed port for multicast example

master
Sebastian Rieger 7 years ago
parent
commit
067c483b32
  1. 2
      VerteilteSysteme-Examples/src/verteiltesysteme/socket/multicast/UDPMulticastConsumer.java
  2. 2
      VerteilteSysteme-Examples/src/verteiltesysteme/socket/multicast/UDPMulticastProducer.java

2
VerteilteSysteme-Examples/src/verteiltesysteme/socket/multicast/UDPMulticastConsumer.java

@ -5,7 +5,7 @@ import java.net.*;
class UDPMulticastConsumer {
public static void main(String args[]) throws Exception {
String groupname = "224.1.1.1";
int udpPort = 36040;
int udpPort = 36041;
@SuppressWarnings("resource")
MulticastSocket mcastSocket = new MulticastSocket(udpPort);
InetAddress IPAddress = InetAddress.getByName(groupname);

2
VerteilteSysteme-Examples/src/verteiltesysteme/socket/multicast/UDPMulticastProducer.java

@ -6,7 +6,7 @@ import java.net.*;
class UDPMulticastProducer {
public static void main(String args[]) throws Exception {
String groupname = "224.1.1.1";
int udpPort = 36040;
int udpPort = 36041;
BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in));
MulticastSocket mcastSocket = new MulticastSocket(udpPort);
InetAddress IPAddress = InetAddress.getByName(groupname);

Loading…
Cancel
Save