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: connecting to a news server (NNTP, port 119)
Winsock: creating a socket that is bound to a specific service provider
Winsock: reading and setting socket options
Winsock: reading email messages (POP3, port 110)
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)
socket
..msdn    Add comment     W32 Constants      Translate this page
The socket function creates a socket that is bound to a specific service provider.
Code examples:
Winsock: sending email messages (SMTP, port 25)
Winsock: reading email messages (POP3, port 110)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
How to build UDP responder
Winsock: connecting to a news server (NNTP, port 119)
How to create non-blocking Winsock server
Winsock: retrieving Web pages using sockets (HTTP, port 80)
A client for testing non-blocking Winsock server
Winsock: reading and setting socket options
Winsock: creating a socket that is bound to a specific service provider
Declaration:
SOCKET socket(
  int af,       
  int type,     
  int protocol  
);
FoxPro declaration:
DECLARE INTEGER socket IN ws2_32;
    INTEGER af,;
    INTEGER type,;
    INTEGER protocol
Parameters:
af
[in] Address family specification.

type
[in] Type specification for the new socket.

protocol
[in] Protocol to be used with the socket that is specific to the indicated address family.
Return value:
If no error occurs, socket returns a descriptor referencing the new socket. Otherwise, a value of INVALID_SOCKET is returned.
My comment:
When a session has been completed, a closesocket must be performed.
Word Index links for the socket :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-20 07:44:43
Modified: 2001-12-20 07:46:57
Visited in last 7 days: 33
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.225.26.44)
39 sec.Function: 'SetWindowPos'
45 sec.Function: 'RegEnumKey'
1.3 min.Function: 'waveInGetErrorText'
Google
Advertise here!