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
getsockopt
..msdn    Add comment     W32 Constants      Translate this page
The getsockopt function retrieves a socket option.
Code examples:
Winsock: reading and setting socket options
Declaration:
int getsockopt(
  SOCKET s,         
  int level,        
  int optname,      
  char FAR *optval, 
  int FAR *optlen  
);
FoxPro declaration:
DECLARE INTEGER getsockopt 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; the supported levels include SOL_SOCKET and IPPROTO_TCP.

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

optval
[out] Pointer to the buffer in which the value for the requested option is to be returned.

optlen
[in, out] Pointer to the size of the optval buffer.
Return value:
If no error occurs, getsockopt 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 setsockopt function.
Word Index links for the getsockopt :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-23 09:52:14
Modified: 2004-06-20 22:13:10
Visited in last 7 days: 8
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.163.84.199)
3 sec.Example: 'Enumerating network interfaces on the local computer'
7 day(s)Function: 'AVIStreamGetFrame'
Function group: 'Windows Multimedia'
 Example: 'GDI+: sending image of FoxPro form to printer'
 Function: 'IsChild'
Function group: 'Window'
9 day(s)Function: 'JetEndSession'
 Function: 'InternetGoOnline'
Function group: 'Internet Functions (WinInet)'
 Example: 'Verifying a file using the Authenticode policy provider'
 Function: 'CeRapiGetError'
Function group: 'Remote Application Programming (RAPI)'
 Example: 'Using FrameRgn for displaying system colors'
 Function: 'SHGetFolderLocation'
Google
Advertise here!