Write two different programs (client/server) which communicate via a TCP/IP connection on the same host machine. The server should listen for connection requests from the client on TCP/IP port 1025. Once a connection is established, it should dump the data sent from the client to the local console. Here is a skeleton of how the server should be implemented: Create a Socket using the appropriate system Call Bind the Socket to an address. (bind system call) using 127.0.0.1(localhost) Invoke a blocking call to listen Do a receive of length 1 byte Do another receive of size determined by the integral value of the byte value from above. Dump the data from step 5 to the console. The client should initiate a connection with the server, and send a simple msg. Use the same port number as above. Prefix the msg with the length of the msg body (The length prefixing implements the application layer of the protocol stack) Here is a skeleton of how the server should be implemented: Create a Socket using the appropriate System call Bind the Socket to an address (bind system call) use 127.0.0.1(local host) Invoke the connect System call with socket from above. Issue a Send with the Msg as a parameter. When testing be sure the server is running prior to running the client.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.