BAEL-4786 - review comments - removed close method

This commit is contained in:
Anshul BANSAL
2021-04-07 13:20:24 +03:00
parent 16d345ea1b
commit d7577d2601
3 changed files with 8 additions and 6 deletions
@@ -17,7 +17,6 @@ public class DatagramClient {
public static void sendMessage(DatagramChannel client, String msg, SocketAddress serverAddress) throws IOException {
ByteBuffer buffer = ByteBuffer.wrap(msg.getBytes());
client.send(buffer, serverAddress);
client.close();
}
public static void main(String[] args) throws IOException {
@@ -24,8 +24,6 @@ public class DatagramServer {
System.out.println("Client at #" + remoteAdd + " sent: " + message);
server.close();
return message;
}