3. After the user enters one line, the client sends this line to the server.<br>4. The client outputs the data received from the server to the console (stdout).<br>5. The client repeats the above steps until it is killed with a Ctrl-C or stdin is closed (user enters
<br>end-of-file, Ctrl-D).<br><br>-- so I&#39;m not sure what the preference here is.&nbsp; Should we create a connection at the very beginning and then always send data on that one connection, and then close it at the very end when EOF is encountered?&nbsp; Or should we create a new connection each time for each line, and immediately close after we&#39;ve done that iteration?&nbsp; I&#39;m guessing the first way, it seems to make more sense.&nbsp; 
<br>