Something went wrong on our end
-
Brutzman, Don authoredBrutzman, Don authored
TcpExample4TerminalLog.txt 4.44 KiB
Invocation instructions:
1. run/debug TcpExample4ThreadTcpExample4DispatchServerServer.java
2. don't run TcpExample4HandlerThread (since it is automatically launched as needed)
3. run/debug TcpExample4Client.java
Two program response logs, server and client:
===================================================
===================================================
run:
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:
TcpExamples.TcpExample4DispatchServer ready to accept socket connections...
=============================================================
TcpExamples.TcpExample4DispatchServer.handlerThread invocation for connection #1...
TcpExamples.TcpExample4DispatchServer.handlerThread is launched, awaiting another connection...
TcpExamples.TcpExample4HandlerThread starting to handle a thread...
TcpExamples.TcpExample4HandlerThread pausing for TIMEOUT=2000ms to emulate computation and avoid server-side overload
TcpExamples.TcpExample4HandlerThread finished handling a thread, now exit.
=============================================================
TcpExamples.TcpExample4DispatchServer.handlerThread invocation for connection #2...
TcpExamples.TcpExample4DispatchServer.handlerThread is launched, awaiting another connection...
TcpExamples.TcpExample4HandlerThread starting to handle a thread...
TcpExamples.TcpExample4HandlerThread pausing for TIMEOUT=2000ms to emulate computation and avoid server-side overload
TcpExamples.TcpExample4HandlerThread finished handling a thread, now exit.
=============================================================
TcpExamples.TcpExample4DispatchServer.handlerThread invocation for connection #3...
TcpExamples.TcpExample4DispatchServer.handlerThread is launched, awaiting another connection...
TcpExamples.TcpExample4HandlerThread starting to handle a thread...
TcpExamples.TcpExample4HandlerThread pausing for TIMEOUT=2000ms to emulate computation and avoid server-side overload
TcpExamples.TcpExample4HandlerThread finished handling a thread, now exit.
=============================================================
TcpExamples.TcpExample4DispatchServer.handlerThread invocation for connection #4...
TcpExamples.TcpExample4DispatchServer.handlerThread is launched, awaiting another connection...
TcpExamples.TcpExample4HandlerThread starting to handle a thread...
TcpExamples.TcpExample4HandlerThread pausing for TIMEOUT=2000ms to emulate computation and avoid server-side overload
TcpExamples.TcpExample4HandlerThread finished handling a thread, now exit.
BUILD STOPPED (total time: 25 seconds)
===================================================
===================================================
run:
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
run:
TcpExamples.TcpExample4Client start, loop 4 times
==================================================
TcpExamples.TcpExample4Client creating socket #1...
TcpExamples.TcpExample4Client: message received from server='This message was written by the server TcpExamples.TcpExample4HandlerThread'
TcpExamples.TcpExample4Client: time msec required for read=2024
==================================================
TcpExamples.TcpExample4Client creating socket #2...
TcpExamples.TcpExample4Client: message received from server='This message was written by the server TcpExamples.TcpExample4HandlerThread'
TcpExamples.TcpExample4Client: time msec required for read=2008
==================================================
TcpExamples.TcpExample4Client creating socket #3...
TcpExamples.TcpExample4Client: message received from server='This message was written by the server TcpExamples.TcpExample4HandlerThread'
TcpExamples.TcpExample4Client: time msec required for read=2007
==================================================
TcpExamples.TcpExample4Client creating socket #4...
TcpExamples.TcpExample4Client: message received from server='This message was written by the server TcpExamples.TcpExample4HandlerThread'
TcpExamples.TcpExample4Client: time msec required for read=2011
==================================================
TcpExamples.TcpExample4Client complete
BUILD SUCCESSFUL (total time: 8 seconds)
===================================================
===================================================