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



ntohs

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

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

Operating Systems Supported
Requires Windows Sockets 1.1

Library
Wsock32.dll

Parameter Information
- netshort
[in] A 16-bit number in TCP/IP network byte order.

Return Values
The ntohs function returns the value in host byte order. If the netshort parameter was already in host byte order, then no operation is performed.

Last update: 07 April 2006