CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which socket is used with a protocol that directly uses the services of IP.

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

The correct option is C Raw

Raw socket is used with a protocol that directly uses the services of IP.

Raw sockets are used to generate/receive packets of a type that the kernel doesn't explicitly support. An easy example that you're probably familiar with is PING. Ping works by sending out an ICMP (internet control message protocol - another IP protocol distinct from TCP or UDP) echo packet.

A raw socket is a type of socket that allows access to the underlying transport provider. This topic focuses only on raw sockets and the IPv4 and IPv6 protocols. ... The Windows Sockets 2 provider for TCP/IP included on Windows supports this SOCK_RAW socket type.

A network socket is one endpoint in a communication flow between two programs running over a network. Sockets are created and used with a set of programming requests or "function calls" sometimes called the sockets application programming interface (API).

Java provides three different types of sockets. Java provides three different types of sockets. Connection-oriented (TCP) sockets are implemented with the Socket class. Connectionless (UDP) sockets use the Datagramsocket class.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Basics of Communication Systems
PHYSICS
Watch in App
Join BYJU'S Learning Program
CrossIcon