
434
Syntax:
CALL "SOCKET.FN3" 7 HOSTLONG, NETLONG
Description: This function converts a (4-byte) long from host byte order to network byte
order.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API htonl() function.
Parameters:
HOSTLONG Long in host byte order
Return value:
NETLONG Long in network byte order
Syntax:
CALL "SOCKET.FN3" 8 HOSTSHORT%, NETSHORT%
Description: This function converts a (2-byte) short from host byte order to network byte
order.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API htons() function.
Parameters:
HOSTSHORT% Short in host byte order
Return value:
NETSHORT% Short in network byte order
Syntax: CALL "SOCKET.FN3" 9 IPADDRESS$, ADDRESS
Description: This function converts an Internet address in dotted quad notation to a 4-
byte Internet address.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API inet_addr() function.
Parameters:
IPADDRESS$ Internet address in dotted quad notation
Return value:
ADDRESS 4-byte Internet address
Function #7: Convert host long (4 bytes) to network byte order
Function #8: Convert host short (2 bytes) to network byte order
Function #9:
Convert Internet address from dotted quad notation to 32-bit integer
Comentarios a estos manuales