Syntax
unsigned short vm_soc_htons(
    unsigned short a
);
ContentsIndex
PreviousUpNext
vm_soc_htons
Example
Syntax
unsigned short vm_soc_htons(
    unsigned short a
);
Description

Converts short integer (16 bits) from host byte order to network byte order

Parameters
Parameters 
Description 
unsigned short a 
[IN] A short integer to be converted. 
Returns

Converted result in unsigned integer.

Example
sockaddr sock_addr;
((struct SOCKADDR_IN *) sock_addr)->sin_port = vm_soc_htons(port);
File

vmsock.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.