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

Which socket is used with a connection less protocol.

A
Stream
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Datagram
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Raw
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Remote
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Datagram

Datagram socket is used with a connection less protocol.

A datagram is a basic transfer unit associated with a packet-switched network. Datagrams are typically structured in header and payload sections. Datagrams provide a connectionless communication service across a packet-switched network.

A socket programming construct can make use of either the UDP or TCP protocol. Sockets that use TCP are termed stream sockets. o Datagram sockets can support both connectionless and connection-oriented communication at the application layer.

UDP socket routines enable simple IP communication using the user datagram protocol (UDP). ... UDP is a very simple protocol. Messages, so called datagrams, are sent to other hosts on an IP network without the need to set up special transmission channels or data paths beforehand.

A connectionless protocol is a form of data transmission in which an IT signal goes out automatically without determing whether the receiver is ready, or even whether a receiver exists.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Conductivity and Resistivity
PHYSICS
Watch in App
Join BYJU'S Learning Program
CrossIcon