1. When using TCP sockets, the server makes use of (at least) two sockets. What are they? Explain the role of each. Hint, think of the questions above. 2. When will send() and recv() functions block?
Added by Tyler L.
Close
Step 1
When using TCP sockets, the server makes use of at least two sockets: a listening socket and a connected socket. - Listening Socket: This socket is created by the server to listen for incoming connection requests from clients. It is responsible for accepting new Show more…
Show all steps
Your feedback will help us improve your experience
Ravindra Yadav and 71 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
How many types of sockets are in use and what are they?
(5 points) Suppose a web server has 1000 ongoing TCP connections. How many server-side sockets are used? How many server-side port numbers are used? Briefly (two sentences at most each) explain your answer.
Madhur L.
What is meant by silly window syndrome that ruins TCP performance? (A) This occurs when sender sends data in large blocks and receiver receives in large blocks. (B) This occurs when sender sends data in large blocks and receiver receives in or reads one byte at a time. (C) Both (A) and (B) (D) None of these
NETWORKS, INFORMATION SYSTEMS, SOFTWARE ENGINEERING AND WEB TECHNOLOGY
TCP/UDP
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD