BAEL-4786 - review comments - removed close method
This commit is contained in:
-1
@@ -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 {
|
||||
|
||||
-2
@@ -24,8 +24,6 @@ public class DatagramServer {
|
||||
|
||||
System.out.println("Client at #" + remoteAdd + " sent: " + message);
|
||||
|
||||
server.close();
|
||||
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user