|
@ -20,6 +20,7 @@ class UDPServer { |
|
|
InetAddress IPAddress = receivePacket.getAddress(); |
|
|
InetAddress IPAddress = receivePacket.getAddress(); |
|
|
int clientSrcPort = receivePacket.getPort(); |
|
|
int clientSrcPort = receivePacket.getPort(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String capitalizedSentence = sentence.toUpperCase(); |
|
|
String capitalizedSentence = sentence.toUpperCase(); |
|
|
sendData = capitalizedSentence.getBytes(); |
|
|
sendData = capitalizedSentence.getBytes(); |
|
|
DatagramPacket sendPacket = new DatagramPacket(sendData, sendData.length, IPAddress, clientSrcPort); |
|
|
DatagramPacket sendPacket = new DatagramPacket(sendData, sendData.length, IPAddress, clientSrcPort); |
|
|