Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
96 views
in Computer by (67.8k points)
closed by

Consider socket API on a Linux machine that supports connected UDP sockets. A connected UDP socket is a UDP socket on which connect function has already been called. Which of the following statements is/are CORRECT ?

 I. A connected UDP socket can be used to communicate with multiple peers simultaneously. 

II. A process can successfully call connect function again for an already connected UDP socket. 

(A) I only 

(B) II only 

(C) Both I and II 

(D) Neither I nor IIs

1 Answer

+1 vote
by (68.9k points)
selected by
 
Best answer

Correct option is (B) II only

A process with a connected UDP socket can call connect again for that socket for one of two reasons: 

(1) To specify a new IP address and port. 

(2) To unconnect the socket.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...