Question
Write a simple client/server program.It should be written in C#/C++ Implement a simple conversation for a messenger application: (70 points) 1) Bob and Alice send
Write a simple client/server program.It should be written in C#/C++ Implement a simple conversation for a messenger application: (70 points) 1) Bob and Alice send message to messenger server and register information with their id, ip addresses and listening ports, as well as a list of friends. In this case, Alices friend list has only one person: Bob. Bobs friend list has only one person: Alice. 2) Bob sends a message to server asking who are my friends? 3) Server replies Bob that Alice is the only person on his friend list. Server also replies Bob with Alices IP address and listening port. 4) After getting Alices IP address and listening port. Bob establish a TCP connection with Alice. Bob sends a message to Alice: How are you?. Then Alice replies Bob: I am doing good.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started