A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



htons

The Windows Sockets htons function converts a u_short from host to TCP/IP network byte order.

VB4-32,5,6
Declare Function htons Lib "wsock32.dll" (ByVal hostshort As Long) As Integer

Operating Systems Supported
Requires Windows Sockets 1.1

Library
Wsock32.dll

Parameter Information
- hostshort
[in] A 16-bit number in host byte order.

Return Values
The htons function returns the value in TCP/IP network byte order.

Last update: 07 April 2006