Which socket type is commonly associated with UDP communication?
Options
-
A.
SOCK_STREAM
-
B.
SOCK_DGRAM
-
C.
SOCK_SEQPACKET
-
D.
SOCK_RDM
-
E.
None of the above
Correct Answer (Detailed Explanation is Below)
B.
SOCK_DGRAM
Detailed Explanation
Correct Answer: SOCK_DGRAM.SOCK_DGRAM provides datagram-based communication and is commonly used with UDP. It does not establish a TCP-style connection before sending data.