File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public void run() {
2828}
2929
3030if (this .isConnected ()) {
31- this .writer . write ( "[Server] Bye bye\r \n " );
31+ this .sentToClient ( " Bye bye" );
3232}
3333} catch (IOException ex ) {
3434System .err .println ("> Error while reading client input: " + ex .getMessage ());
@@ -77,8 +77,7 @@ private void initClient() {
7777try {
7878this .reader = new BufferedReader (new InputStreamReader (socket .getInputStream ()));
7979this .writer = new BufferedWriter (new OutputStreamWriter (socket .getOutputStream ()));
80- this .writer .write ("[Server] Hello from VirtualThread Server\r \n " );
81- this .writer .flush ();
80+ this .sentToClient ("Hello from VirtualThread Server" );
8281} catch (IOException ex ) {
8382System .err .println ("> Error while initializing client: " + ex .getMessage ());
8483}
You can’t perform that action at this time.
0 commit comments