Exercise 14‑2‑1: TCP Server
Due Apr 20 at 11:59pm Points 20 Questions 12
Available Apr 17 at 4pm Apr 20 at 11:59pm 3 days Time Limit None
Allowed Attempts 2
Instruc ons
For this exercise, you will work through a short programming lab using C++ in the Cloud9 environment and
will complete the quiz questions shown below. You can submit this exercise two (2) times. Only the highest
score will be kept.
Note: Your answers must be exact, i.e., correct spelling and spacing are necessary.
This exercise assumes that you have already configured a Cloud9 environment for C++
(see Cloud9SetUp slide show (https://studentuncc
my.sharepoint.com/personal/swatso50_uncc_edu/_layouts/15/guestaccess.aspx?
docid=0736c1193558844da9e8073ff4bcad902&authkey=AeUaKt1RFUSFJZf_dMVFl5w) for instructions).
Take the Quiz Again
A empt History
Attempt Time Score
LATEST Attempt 1 136 minutes 10 out of 20 *
* Some questions not yet graded
Correct answers are hidden.
Score for this attempt: 10 out of 20 *
Submitted Apr 17 at 6:46pm
This attempt took 136 minutes.
You will use the workspace navigator to access and manage your files.
You will use the editor to create and modify C++ source code.
You will use the bash shell to compile your programs using g++, view the
output produced by your programs and to execute Linux shell commands
and scripts.
This study source was downloaded by 100000850872992 from CourseHero.com on 03-17-2023 18:41:18 GMT -05:00
https://uncc.instructure.com/courses/68289/quizzes/68015 1/9
https://www.coursehero.com/file/47009211/Exercise-14-2-1-TCP-Server-201810-Spr-3146-001-Intro-Oper-Syst-Networkingpdf/
, 4/17/2018 Exercise 14-2-1: TCP Server: 201810-Spring 2018-ITSC-3146-001-Intro Oper Syst & Networking
The goal of the assignment is for you to explore and use functions related
to TCP Sockets in Unix based OSs.
Refer to the following slides as you work on this exercise: Computer
Networks Sockets (https://drive.google.com/open?
id=0B2pK0GpUEQ4hdXN1dmUzb0ZVVXM) [pdf]
Question 1 pts
What is the most common type of distributed application?
client/server
Question 2 pts
What is the most common programming API used for network applications,
such as email and file sharing?
sockets
Question 3 pts
In order to deliver a datagram to a destination (or endpoint), it is necessary to
specify the IP address of the host network
interface and the port number receiving
application process.
This study source was downloaded by 100000850872992 from CourseHero.com on 03-17-2023 18:41:18 GMT -05:00
https://uncc.instructure.com/courses/68289/quizzes/68015 2/9
https://www.coursehero.com/file/47009211/Exercise-14-2-1-TCP-Server-201810-Spr-3146-001-Intro-Oper-Syst-Networkingpdf/