FACULTY OF INFORMATION TECHNOLOGY
BACHELOR OF SCIENCE IN TELECOMMUNICATION
DATA NETWORKS DESIGN
REPORT ON THE SERVER AND CLIENT SOCKETS
Fr Machumilane Achilles 068104
SERVER AND CLIENT SOCKETS
This program enables several clients to communicate with the server remotely. In this communication, the program enables the server to broadcast the message from one of the clients together with the IP address and the Port number of the sender to all the clients connected to the server. The program runs on the server. It contains the server and client sockets. After binding the server socket to the ports it enables the server to listen and wait for connection requests from the clients. The number of clients that can connect to the server is specified in the code. In this program the server could communicate with three clients. When the client requests for connection by remote access, the server responds with acknowledgement of successful connection and prompts the client to send any message which will be echoed by the server. The server also records and displays the IP address and the Port number of each client that has been connected to it. When a client sends any message to the server, the server records this message in its buffer, echoes the message back to the client together with the client’s IP address and Port number. The server too, broadcasts the same message together with the IP address and the Port number of the sender to all the clients that are currently connected to the server.