@@ -51,7 +51,7 @@ public class AppClient {
51
51
52
52
/**
53
53
* App client entry.
54
- *
54
+ *
55
55
* @throws IOException if any I/O error occurs.
56
56
*/
57
57
public static void main (String [] args ) throws IOException {
@@ -61,7 +61,7 @@ public static void main(String[] args) throws IOException {
61
61
62
62
/**
63
63
* Starts the logging clients.
64
- *
64
+ *
65
65
* @throws IOException if any I/O error occurs.
66
66
*/
67
67
public void start () throws IOException {
@@ -106,7 +106,7 @@ static class TcpLoggingClient implements Runnable {
106
106
107
107
/**
108
108
* Creates a new TCP logging client.
109
- *
109
+ *
110
110
* @param clientName the name of the client to be sent in logging requests.
111
111
* @param serverPort the port on which client will send logging requests.
112
112
*/
@@ -115,6 +115,7 @@ public TcpLoggingClient(String clientName, int serverPort) {
115
115
this .serverPort = serverPort ;
116
116
}
117
117
118
+ @ Override
118
119
public void run () {
119
120
try (Socket socket = new Socket (InetAddress .getLocalHost (), serverPort )) {
120
121
OutputStream outputStream = socket .getOutputStream ();
@@ -154,7 +155,7 @@ static class UdpLoggingClient implements Runnable {
154
155
155
156
/**
156
157
* Creates a new UDP logging client.
157
- *
158
+ *
158
159
* @param clientName the name of the client to be sent in logging requests.
159
160
* @param port the port on which client will send logging requests.
160
161
* @throws UnknownHostException if localhost is unknown
0 commit comments