1) Write a server that accepts a connection, reads a string, returns the string with "The message was: " added to the front, then drops the connection with the client. For example, if a client sends to the server:
2) Write a small server for the Airline reservation system. The server needs to
handle two possible requests from a client. First, the client can ask the server
which cities have a direct connection from a given city. So, if the client asks
for the direct connections from Denver (or DE), the server will return
Dallas/Fort Worth, Fargo ND, Los Angeles (or DFW, FAR, LAX). You may use either
the city names or the city codes. Second, the client can request a passenger
manifest. If the client provides the server with a flight number and date, the
server will return the passenger manifest for that flight on the given date. The
requests can be made in any order.