Skip to content

Commit ed1bac0

Browse files
authored
Update ClientDatagram.java
Corrected line 40.
1 parent b450f47 commit ed1bac0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

UDP_Server_And_Client_Application/Programed_In_the_teacher's_way/ClientDatagram.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ private static void accessServer() {
3636
ength(), host, PORT); //STEP 2
3737
datagramSocket.send(outPacket); //STEP 3
3838
buffer = new byte[256]; //STEP 5
39-
inPacket = new DatagramPacket(buffer, buffer.length); //STEP
40-
5
39+
inPacket = new DatagramPacket(buffer, buffer.length); //STEP 5
4140
datagramSocket.receive(inPacket); //STEP 6
4241
response = new String(inPacket.getData(), 0, inPacket.getLen
4342
gth()); //STEP 7
@@ -57,4 +56,4 @@ private static void accessServer() {
5756
}
5857
}
5958

60-
}
59+
}

0 commit comments

Comments
 (0)