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:
Winsock: reading and setting socket options
setsockopt
..msdn    Add comment     W32 Constants      Translate this page
The setsockopt function sets a socket option.
Code examples:
Winsock: reading and setting socket options
Declaration:
int setsockopt(
  SOCKET s,
  int level,
  int optname,
  const char* optval,
  int optlen
);

FoxPro declaration:
DECLARE INTEGER setsockopt IN ws2_32;
    INTEGER   s,;
    INTEGER   level,;
    INTEGER   optname,;
    STRING  @ optval,;
    INTEGER   optlen


Parameters:
s
[in] Descriptor identifying a socket.

level
[in] Level at which the option is defined. Example: SOL_SOCKET.

optname
[in] Socket option for which the value is to be set.

optval
[in] Pointer to the buffer in which the value for the requested option is specified.

optlen
[in] Size of the optval buffer, in bytes.
Return value:
If no error occurs, setsockopt returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.
My comment:
See also getsockopt function.
Word Index links for the setsockopt :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-06-20 22:07:57
Modified: 2004-06-20 22:12:34
Visited in last 7 days: 12
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.92.141.211)
6 sec.Function: 'GetOEMCP'
11 sec.Function: 'PathSearchAndQualify'
16 sec.Function: 'SetConsoleCursorPosition'
23 sec.Function: 'GetDoubleClickTime'
29 sec.Function: 'GdipCreateFontFamilyFromName'
35 sec.Function: 'UrlEscape'
40 sec.Function: 'GetAsyncKeyState'
46 sec.Function: 'GetKeyboardLayoutList'
51 sec.Function: 'FindFirstPrinterChangeNotification'
57 sec.Function: 'GetProcessPreferredUILanguages'
Google
Advertise here!