Using Win32 functions in Visual FoxPro Image Gallery
Windows Sockets 2 (Winsock)
..msdn
accept
bind
closesocket
gethostbyaddr
gethostbyname
gethostname
getnameinfo
getprotobyname
getprotobynumber
getservbyname
getservbyport
getsockopt
htonl
htons
inet_addr
inet_ntoa
listen
ntohl
ntohs
recv
recvfrom
send
sendto
setsockopt
socket
WSACleanup
WSACloseEvent
WSAConnect
WSACreateEvent
WSAEnumProtocols
WSAEventSelect
WSAGetLastError
WSARecv
WSASend
WSAStartup
WSAWaitForMultipleEvents
ws_connect
ws_select
Code examples:
A client for testing non-blocking Winsock server
How to build UDP responder
How to create non-blocking Winsock server
Winsock: changing the byte ordering
Winsock: connecting to a news server (NNTP, port 119)
Winsock: how to retrieve a service information corresponding to a port
Winsock: how to retrieve a service information corresponding to a service name
Winsock: reading email messages (POP3, port 110)
Winsock: resolving an address to a host name
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Winsock: retrieving Web pages using sockets (HTTP, port 80)
Winsock: sending email messages (SMTP, port 25)
htons
..msdn    Add comment     W32 Constants      Translate this page
The htons function converts a u_short from host to TCP/IP network byte order (which is big-endian).
Code examples:
Winsock: sending email messages (SMTP, port 25)
Winsock: connecting to a news server (NNTP, port 119)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
How to create non-blocking Winsock server
Winsock: resolving an address to a host name
Winsock: reading email messages (POP3, port 110)
How to build UDP responder
A client for testing non-blocking Winsock server
Winsock: retrieving Web pages using sockets (HTTP, port 80)
Winsock: how to retrieve a service information corresponding to a port
Declaration:
u_short htons(
  u_short hostshort  
);
FoxPro declaration:
DECLARE INTEGER htons IN ws2_32;
    INTEGER hostshort
Parameters:
hostshort
[in] 16-bit number in host byte order.
Return value:
The htons function returns the value in TCP/IP network byte order.
Word Index links for the htons :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-19 18:51:42
Modified: 2001-12-19 19:00:54
Visited in last 7 days: 43
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.198.134.32)
7 sec.Function: 'GdipSetMatrixElements'
Function group: 'GDI+ Matrix'
22 sec.Function: 'CeRegQueryInfoKey'
Function group: 'Remote Application Programming (RAPI)'
32 sec.
43 sec.Function: 'mixerSetControlDetails'
Function group: 'Windows Multimedia'
53 sec.Example: 'Retrieving configuration information for the specified workstation (Win2000/XP)'
1.08 min.Function: 'SQLConfigDataSource'
Function group: 'ODBC API'
1.25 min.
Function group: 'String'
1.43 min.Function: 'CeRapiInvoke'
Function group: 'Remote Application Programming (RAPI)'
1.62 min.
1.82 min.Function: 'waveOutGetPosition'
Function group: 'Windows Multimedia'
Google
Advertise here!