c) Provide the code for a connection-oriented server and client for the counter protocol
This exercise deals with stateful servers that maintain global state information.
// Now increment the counter, then send it to the client.
counter+= 2;
Computer Science & Information Technology