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 to Expert-Tailored 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

Recommended Textbook for

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions

Question

Perform an Internet search. Discuss a company that uses EPLI.

Answered: 1 week ago

Question

How do you feel about employment-at-will policies? Are they fair?

Answered: 1 week ago