Closed rolandweber closed 6 years ago
Running two servers in parallel makes sense. Preferable when there are two server implementations. For the socket exercise, the second server could be in a different programming language. Or one with blocking IO and the other with asynchronous NIO and connection keep-alive.
Some ideas on how to integrate this into the classroom exercises:
As a stop-gap measure, I'm improving the inline comments to explicitly mention that host and port should be taken from the command line. I wonder how many are going to ignore that comment anyway ;-)
There's no point in pursuing this further. If students choose to ignore instructions, I can't help it.
During the classroom exercises (Sockets, Java RMI), students could hard-code the server name instead of using the respective command-line argument, without encountering an error. With just one server machine in the network this is hard to prevent.
Improve the comments in the code? Change the server IP address during the exercise? Run two servers in parallel?
Detected during Sockets exercise 2016 (#38).