|
@ -2,12 +2,12 @@ |
|
|
|
|
|
|
|
|
package verteiltesysteme.socket.simple; |
|
|
package verteiltesysteme.socket.simple; |
|
|
|
|
|
|
|
|
import java.io.*; |
|
|
|
|
|
import java.net.*; |
|
|
import java.net.*; |
|
|
|
|
|
|
|
|
class UDPServer { |
|
|
class UDPServer { |
|
|
public static void main(String args[]) throws Exception { |
|
|
public static void main(String args[]) throws Exception { |
|
|
int udpPort = 36037; |
|
|
int udpPort = 36037; |
|
|
|
|
|
@SuppressWarnings("resource") |
|
|
DatagramSocket serverSocket = new DatagramSocket(udpPort); |
|
|
DatagramSocket serverSocket = new DatagramSocket(udpPort); |
|
|
byte[] receiveData = new byte[1024]; |
|
|
byte[] receiveData = new byte[1024]; |
|
|
byte[] sendData = new byte[1024]; |
|
|
byte[] sendData = new byte[1024]; |
|
|