Professional Documents
Culture Documents
Algorithm
Algorithm
Algorithm
array size The client program invokes the IP address of the server Establishes a the connection to the server by invoking input and output stream It checks any messages are received from the server Close the chatclient connection
Creating the class ChatServer it initialize the variable and array size
Read a local port to set the server Create and accept chat packets on the local port Create a thread to handle each packet which arives at the server Connect more clients without restarting the chat server Close the chatserver connection
sliding ALGORITHM Step 2 Step 3 Step 4 Step 5 Step 6 Transmit all frames in the sender's window The receiver receives the frame It generates an acknowledgment for the highest frame correctly received Negative acknowledgment is send for damaged or lost frames Retransmit the corresponding frame
Routing