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 build UDP responder
How to create non-blocking Winsock server
bind
..msdn    Add comment     W32 Constants      Translate this page
The bind function associates a local address (IP address and port) with a socket.
Code examples:
How to create non-blocking Winsock server
How to build UDP responder
Declaration:
int bind(
  SOCKET s,
  const struct sockaddr* name,
  int namelen
);
FoxPro declaration:
DECLARE INTEGER bind IN ws2_32 As ws_bind;
    INTEGER  s,;
    STRING @ sockaddr,;
    INTEGER  namelen

Parameters:
s
[in] Descriptor identifying an unbound socket.

name
[in] Address to assign to the socket from the sockaddr structure.

namelen
[in] Length of the value in the name parameter, in bytes.
Return value:
If no error occurs, bind returns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code can be retrieved by calling WSAGetLastError.
My comment:
In Visual FoxPro 8 declare bind function with an alias, because it may mix with BINDEVENT.
Word Index links for the bind :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-07-08 08:58:05
Modified: 2004-10-15 11:31:13
Visited in last 7 days: 14
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.237.122.241)
2 sec.Example: 'Basic Volume information'
4 sec.Example: 'Downloading files from the FTP server using InternetReadFile'
6 sec.Example: 'Using Shell for performing operations on files'
11 sec.Function: 'UuidCreate'
33 sec.Example: 'How to display Windows On-Screen Keyboard'
40 sec.Function: 'send'
Function group: 'Windows Sockets 2 (Winsock)'
1.08 min.Function: 'DeleteFileTransacted'
Function group: 'File Management'
Google
Advertise here!