|
|
@ -17,7 +17,7 @@ class UDPMulticastConsumer { |
|
|
|
DatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length); |
|
|
|
mcastSocket.receive(receivePacket); |
|
|
|
String sentence = new String(receivePacket.getData(), 0, receivePacket.getLength()); |
|
|
|
System.out.println(sentence); |
|
|
|
System.out.println("Empfangene Multicast-Nachricht (an: " + groupname + ":" + udpPort + "): " + sentence); |
|
|
|
} |
|
|
|
} |
|
|
|
} |