htonl

Description

Convert the unsigned integer from host byte order to network byte order.

Syntax

htonl <hostlong>

htonl <hostlong>

  • Convert the unsigned integer from host byte order to network byte order.

Examples

when HTTP_REQUEST {
  set hostlong 12345678
  set netlong [htonl $hostlong]
}