AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

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.

Examples

Related Functions

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/