Skip to content

Commit 6c9119a

Browse files
authored
Update ClientDatagram.java
Corrected line 37.
1 parent 0e0ecd2 commit 6c9119a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UDP_Server_And_Client_Application/Programed_In_the_teacher's_way/ClientDatagram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private static void accessServer() {
3434
if (!message.equals("***CLOSE***")) {
3535
outPacket = new DatagramPacket(message.getBytes(), message.length(), host, PORT); //STEP 2
3636
datagramSocket.send(outPacket); //STEP 3
37-
buffer = new byte[256]; //STEP 5
37+
buffer = new byte[256]; //STEP 4
3838
inPacket = new DatagramPacket(buffer, buffer.length); //STEP 5
3939
datagramSocket.receive(inPacket); //STEP 6
4040
response = new String(inPacket.getData(), 0, inPacket.getLength()); //STEP 7

0 commit comments

Comments
 (0)