PyDocs

Nav

Networking and Interprocess Communication

htons

socket

functionnot WASI
  • htons(x)
Convert a 16-bit unsigned integer from host to network byte order.
Changed in 3.10
  • 3.10: Raises OverflowError if x does not fit in a 16-bit unsigned integer.
0 Examples
No examples for socket/htons.
See Also
No see-alsos for socket/htons
0 Notes
No notes for htons