Check out my first novel, midnight's simulacra!

UDP: Difference between revisions

From dankwiki
(Created page with "IPv4 protocol 17, Berkeley Socket type <tt>SOCK_DGRAM</tt>. Header is eight bytes: * source port * dest port * length (header + payload, minimum 8) * checksum If no response is expected, the source port can be set to 0. Under IPv4, the checksum can be set to 0 to indicate that it is unused (the checksum is mandatory in IPv6). When using IPv6 jumbograms, and the length is greater than 65,535, the length filed ought be set to 0.")
Tags: mobile web edit mobile edit
 
(No difference)

Latest revision as of 07:49, 2 April 2022

IPv4 protocol 17, Berkeley Socket type SOCK_DGRAM. Header is eight bytes:

  • source port
  • dest port
  • length (header + payload, minimum 8)
  • checksum

If no response is expected, the source port can be set to 0. Under IPv4, the checksum can be set to 0 to indicate that it is unused (the checksum is mandatory in IPv6). When using IPv6 jumbograms, and the length is greater than 65,535, the length filed ought be set to 0.