1. Compare stream sockets, datagram sockets, and raw sockets.
Stream socket:
Stream socket used TCP (Transmission Control Protocol) for data transmission. It is connection-oriented network. It provides two way of communications between a client and server. Communication is sequenced and reliable. Destroy and missing packets may be detected.
Datagram Sockets: Datagram sockets used UDP (User Datagram Protocol) for data transmission. It is a type of connection-less network for sending and receiving packet. Each packet is transferred and routed individual.
Raw Sockets: These sockets are not intended for the general user these are used in developing new communication protocols. Raw sockets are used to receive raw packets. Packets which are received at the ethernet layer are directly passed to the raw sockets.
Get Answers For Free
Most questions answered within 1 hours.