From c224271ccbcbc25e81d046841365a5877c8cbcd7 Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@DESKTOP-2S09UKA> Date: Tue, 6 Aug 2019 14:50:31 -0700 Subject: [PATCH] retest looks good! --- .../TcpExamples/TcpExample4TerminalLog.txt | 57 ++++++++++--------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/examples/src/TcpExamples/TcpExample4TerminalLog.txt b/examples/src/TcpExamples/TcpExample4TerminalLog.txt index b44a8a50bd..3188b56d5e 100644 --- a/examples/src/TcpExamples/TcpExample4TerminalLog.txt +++ b/examples/src/TcpExamples/TcpExample4TerminalLog.txt @@ -1,5 +1,5 @@ Invocation instructions: -1. run/debug TcpExample4ThreadServer.java +1. run/debug TcpExample4ThreaTcpExample4DispatchServerdServer.java 2. don't run TcpExample4HandlerThread since it is launched as needed 3. run/debug TcpExample4Client.java @@ -8,56 +8,61 @@ Two program response logs: =================================================== =================================================== run: -TcpExample4ThreadServer ready to accept socket connections... +ant -f C:\\x-nps-gitlab\\NetworkedGraphicsMV3500\\examples -Dnb.internal.action.name=run.single -Djavac.includes=TcpExamples/TcpExample4DispatchServer.java -Drun.class=TcpExamples.TcpExample4DispatchServer run-single + +run-single: +TcpExample4DispatchServer ready to accept socket connections... ============================================================= -TcpExample4ThreadServer.handlerThread invocation for connection #1... -TcpExample4ThreadServer.handlerThread is launched, awaiting another connection...T -cpExample4HandlerThread starting to handle a thread... -TcpExample4HandlerThread pausing for TIMEOUT=10000ms +TcpExample4DispatchServer.handlerThread invocation for connection #1... +TcpExample4DispatchServer.handlerThread is launched, awaiting another connection... +TcpExample4HandlerThread starting to handle a thread... +TcpExample4HandlerThread pausing for TIMEOUT=2000ms TcpExample4HandlerThread finished handling a thread, now exit. ============================================================= -TcpExample4ThreadServer.handlerThread invocation for connection #2... -TcpExample4ThreadServer.handlerThread is launched, awaiting another connection... +TcpExample4DispatchServer.handlerThread invocation for connection #2... +TcpExample4DispatchServer.handlerThread is launched, awaiting another connection... TcpExample4HandlerThread starting to handle a thread... -TcpExample4HandlerThread pausing for TIMEOUT=10000ms +TcpExample4HandlerThread pausing for TIMEOUT=2000ms TcpExample4HandlerThread finished handling a thread, now exit. ============================================================= -TcpExample4ThreadServer.handlerThread invocation for connection #3... -TcpExample4ThreadServer.handlerThread is launched, awaiting another connection... +TcpExample4DispatchServer.handlerThread invocation for connection #3... +TcpExample4DispatchServer.handlerThread is launched, awaiting another connection... TcpExample4HandlerThread starting to handle a thread... -TcpExample4HandlerThread pausing for TIMEOUT=10000ms +TcpExample4HandlerThread pausing for TIMEOUT=2000ms TcpExample4HandlerThread finished handling a thread, now exit. ============================================================= -TcpExample4ThreadServer.handlerThread invocation for connection #4... -TcpExample4ThreadServer.handlerThread is launched, awaiting another connection... +TcpExample4DispatchServer.handlerThread invocation for connection #4... +TcpExample4DispatchServer.handlerThread is launched, awaiting another connection... TcpExample4HandlerThread starting to handle a thread... -TcpExample4HandlerThread pausing for TIMEOUT=10000ms +TcpExample4HandlerThread pausing for TIMEOUT=2000ms TcpExample4HandlerThread finished handling a thread, now exit. -BUILD STOPPED (total time: 1 minute 7 seconds) +BUILD STOPPED (total time: 42 seconds) =================================================== =================================================== run: -TcpExample4Client start +ant -f C:\\x-nps-gitlab\\NetworkedGraphicsMV3500\\examples -Dnb.internal.action.name=run.single -Djavac.includes=TcpExamples/TcpExample4Client.java -Drun.class=TcpExamples.TcpExample4Client run-single + +TcpExample4Client start, loop 4 times ================================================== TcpExample4Client creating socket #1... -TcpExample4Client: message received from server=This was written by the server TcpExample4HandlerThread -TcpExample4Client: time msec required for read=10021 +TcpExample4Client: message received from server='This message was written by the server TcpExample4HandlerThread' +TcpExample4Client: time msec required for read=2023 ================================================== TcpExample4Client creating socket #2... -TcpExample4Client: message received from server=This was written by the server TcpExample4HandlerThread -TcpExample4Client: time msec required for read=10002 +TcpExample4Client: message received from server='This message was written by the server TcpExample4HandlerThread' +TcpExample4Client: time msec required for read=2003 ================================================== TcpExample4Client creating socket #3... -TcpExample4Client: message received from server=This was written by the server TcpExample4HandlerThread -TcpExample4Client: time msec required for read=10001 +TcpExample4Client: message received from server='This message was written by the server TcpExample4HandlerThread' +TcpExample4Client: time msec required for read=2005 ================================================== TcpExample4Client creating socket #4... -TcpExample4Client: message received from server=This was written by the server TcpExample4HandlerThread -TcpExample4Client: time msec required for read=10003 +TcpExample4Client: message received from server='This message was written by the server TcpExample4HandlerThread' +TcpExample4Client: time msec required for read=2005 ================================================== TcpExample4Client complete -BUILD SUCCESSFUL (total time: 40 seconds) +BUILD SUCCESSFUL (total time: 9 seconds) =================================================== =================================================== \ No newline at end of file -- GitLab