Which socket is used with a connection less protocol.
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.