wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

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
II only
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
Both I and II
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Neither I nor II
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
I only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A II only
Bind ( ) function creates local address.
connect ( ) function is specifying remote address.
An unconnected UDP socket is just a Bind ( ) function
A connected UDP socket is one more step above i.e. connect ( ) function [Just behaves like TCP]

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Aurangzeb
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon