Create a client server system
Posted on 2004-03-25
Create a client server system similar to ICQ or IM. The system is much simpler and smaller version than the real ICQ or IM. The tool should be text based only. The idea is to write a program to create two processes (one client and one server). The client and the server need not to establish connection (i.e. no logging or password). They should know each other directly. The client takes a text line written by the user at the client side and sends this line to the server. The server will display this line and wait the user (at server side this time) to write a response to be sent to the client. And it goes back and forth until one of the two processes hits “bye” as the only string in the line. At that time..Both the server and the client should be terminated. Shared memory, piping, or sockets programming can be used.