Algorithm

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Algorithm: CLIENT Step 1 Step 2 Step 3 Step 4 Step 5 Creating the class ChatClient it initialize the variable and

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

SERVER Step 1 Step 2


Step 3 Step 4 Step 5 Step 6

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

You might also like