Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Q.1- Write an algorithm each for TCP client and TCP server according to the following specification.
.TCP server can handle maximum 3 clients concurrently.
.TCP client will send a list of numbers to the server, after establishment of connection.
.TCP server will accept the list and return back to the client.
.After receiving the reverse list the client will send "THANKS"message to the server.
Q.2- Write an algorithm for TCP client and TCP server each using the following specification.
. Client program will send any random number to the TCP server.
.TCP server program will return "YES".If the given number is a prime number else return "NO" to the respective client.

What I have tried:

I have tried to solve but. It isn't understandable to me so please help me.
Posted
Updated 18-Dec-22 1:35am
Comments
Richard MacCutchan 18-Dec-22 8:02am    
If you do not understand the question then you should talk to your teacher and explain that you need some extra help with the course.

1 solution

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]

If you don't understand the question at all, then you need to talk to your tutor, not us!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900