|
|

This is only a preview of the paper Click here to register and get the full text. Existing members click here to login
|
|
|
DETAILS The software is composed of two parts: The server side The client side The server side: The purpose of the server is to accept connections from the clients and facilitate them to communicate with each other using text messaging. The servers maintain a list of all the clients that are connected to it and the sockets associated with each client. The server should be able to handle multiple client connection (their requests) at the same time. This handling of multiple client requests at the same time has been implemented using “threads”. The main functionalities of the server are: Add a client: This function allows the server to accept multiple connections. After accepting a connection the server creates a thread process whose job is to handle all the requests of that specific client to which that thread is associated with. Remove a client: This function is used to remove a client from the server. The server then closes the associated thread and removes the client’s specifications from the online list. Send broadcast messages: By broadcast message is meant a message that is sent to all the clients currently running and connected to the server. The server process also facilitates the broadcast messages received fro a client process. Handle private messages: By private message it’s meant a message, which is not common to all, it’s delivered to only to specified clients. The handling of such type of messages is done in a much similar way as that of broadcast with the sending being limited to only the specified clients (identified by their nicks). Register the user nicks: Other clients identify uniquely on the server and all clients by their selected names (also called in terms of IRC language as nicks) and id (which is the port no of client process). The server maintains a list of all the clients available in an array consisting of nicks. The client side: A client is anything connecting to a server that is not another server.
Approximate Word count = 1286 Approximate Pages = 5.1 (250 words per page double spaced)
|
|
|
|
|
|