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:
ws_select
..msdn    Add comment     W32 Constants      Translate this page
The select function determines the status of one or more sockets, waiting if necessary, to perform synchronous I/O.
Code examples:
Declaration:
int select(
  int nfds,
  fd_set* readfds,
  fd_set* writefds,
  fd_set* exceptfds,
  const struct timeval* timeout
);
FoxPro declaration:
DECLARE INTEGER select IN ws2_32 AS ws_select;
    INTEGER   nfds,;
    STRING  @ readfds,;
    STRING  @ writefds,;
    STRING  @ exceptfds,;
    INTEGER   timeout

Parameters:
nfds
[in] Ignored. The nfds parameter is included only for compatibility with Berkeley sockets.

readfds
[in, out] Optional pointer to a set of sockets to be checked for readability.

writefds
[in, out] Optional pointer to a set of sockets to be checked for writability

exceptfds
[in, out] Optional pointer to a set of sockets to be checked for errors.

timeout
[in] Maximum time for select to wait, provided in the form of a TIMEVAL structure.
Return value:
The select function returns the total number of socket handles that are ready and contained in the fd_set structures, zero if the time limit expired, or SOCKET_ERROR if an error occurred.
Word Index links for the ws_select :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-02-05 19:14:03
Modified: 2003-02-05 19:39:35
Visited in last 7 days: 10
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.246.116)
11 sec.Project
27 sec.Function: 'CharToOem'
Function group: 'String'
53 sec.Function: 'PlaySound'
Function group: 'Windows Multimedia'
1.1 min.Function: 'FtpSetCurrentDirectory'
Function group: 'Internet Functions (WinInet)'
1.32 min.Example: 'Moving shortcut to a specified position on the Windows Desktop'
1.57 min.Function: 'GetTextCharacterExtra'
Function group: 'Font and Text'
1.8 min.Function: 'gethostbyaddr'
Function group: 'Windows Sockets 2 (Winsock)'
2 min.Function: 'GetFileAttributesEx'
Function group: 'File Management'
2.2 min.Function: 'GetEnhMetaFileHeader'
Function group: 'Metafile'
2.38 min.Function: 'mmioOpen'
Function group: 'Windows Multimedia'
Google
Advertise here!