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:
How to create non-blocking Winsock server
listen
..msdn    Add comment     W32 Constants      Translate this page
The listen function places a socket in a state in which it is listening for an incoming connection.
Code examples:
How to create non-blocking Winsock server
Declaration:
int listen(
  SOCKET s,
  int backlog
);
FoxPro declaration:
DECLARE INTEGER listen IN ws2_32;
    INTEGER s,;
    INTEGER backlog
Parameters:
s
[in] Descriptor identifying a bound, unconnected socket.

backlog
[in] Maximum length of the queue of pending connections.
Return value:
If no error occurs, listen returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.
My comment:
If backlog set to SOMAXCONN (0x7FFFFFFF), the underlying service provider responsible for socket s will set the backlog to a maximum reasonable value.
Word Index links for the listen :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-07-08 09:06:31
Modified: 2003-07-08 09:10:57
Visited in last 7 days: 23
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.82.79.109)
16 sec.Function: 'InternetOpenUrl'
31 sec.Function: 'DrawFrameControl'
47 sec.Function: 'WTSRegisterSessionNotification'
1.07 min.Function: 'InternetCheckConnection'
1.32 min.Function: 'NetServerGetInfo'
1.58 min.Function: 'WritePrivateProfileString'
1.83 min.Function: 'FreePrinterNotifyInfo'
2.08 min.Function: 'GetUserNameEx'
2.37 min.Function: 'CreateMutex'
2.63 min.Function: 'MAPISendDocuments'
Google
Advertise here!