SOCK_DGRAM top-level constant

int const SOCK_DGRAM

Datagram socket.

A socket type that supports datagrams, which are connectionless, unreliable buffers of a fixed (typically small) maximum length. This socket type uses the User Datagram Protocol (UDP) for the Internet address family (AF_INET or AF_INET6).

Implementation

const SOCK_DGRAM = 2;