logoalt Hacker News

stavrostoday at 9:39 AM4 repliesview on HN

> It's not UDP socket that gets created here, but Datagram socket

A datagram socket is a UDP socket, though. That's what the D stands for.


Replies

jmgaotoday at 10:06 AM

Wrong way around: UDP sockets are datagram sockets, there are datagram sockets that are not UDP.

Quarreltoday at 12:55 PM

To give a more nuanced reply versus the "you're wrong" ones already here, the difference is that UDP adds send and receive ports, enabling most modern users (& uses) of UDP. Hence, it is the "User" datagram protocol.

(it also adds a checksum, which used to be more important than it is nowadays, but still well worth it imho.)

meindnochtoday at 2:40 PM

Not every cola is Coca-Cola, even though "Cola" stands for cola.

jdndbdbdtoday at 11:05 AM

No? Why would you think a datagram socket is UDP?

show 1 reply