Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions