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
recvfrom
..msdn    Add comment     W32 Constants      Translate this page
Receives a datagram and stores the source address.
Code examples:
How to build UDP responder
Declaration:
int recvfrom(
  SOCKET s,
  char* buf,
  int len,
  int flags,
  struct sockaddr* from,
  int* fromlen
);

FoxPro declaration:
DECLARE INTEGER recvfrom IN ws2_32;
    INTEGER s,;
    STRING @buf,;
    INTEGER buflen,;
    INTEGER rcvflags,;
    STRING @sockaddr,;
    INTEGER @fromlen
Parameters:
s
[in] Descriptor identifying a bound socket.

buf
[out] Buffer for the incoming data.

len
[in] Length of buf, in bytes.

flags
[in] Indicator specifying the way in which the call is made.

from
[out] Optional pointer to a buffer in a sockaddr structure that will hold the source address upon return.

fromlen
[in, out] Optional pointer to the size, in bytes, of the from buffer.
Return value:
If no error occurs, recvfrom returns the number of bytes received. If the connection has been gracefully closed, the return value is zero. Otherwise, a value of SOCKET_ERROR (-1) is returned, and a specific error code can be retrieved by calling WSAGetLastError.
Word Index links for the recvfrom :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-06-08 20:19:32
Modified: 2006-06-08 20:21:03
Visited in last 7 days: 32
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.227.127.109)
13 sec.Function: 'GetEnvironmentStrings'
Function group: 'Process and Thread'
25 sec.Function: 'NetUserSetInfo'
Function group: 'Network Management'
39 sec.Function: 'TerminateProcess'
Function group: 'Process and Thread'
51 sec.Function: 'NetMessageNameAdd'
Function group: 'Network Management'
1.07 min.Example: 'Creating the Save dialog box to specify the drive, directory, and name of a file to save'
1.28 min.Function: 'GetCommandLine'
Function group: 'Process and Thread'
1.52 min.Function: 'NetUserGetInfo'
Function group: 'Network Management'
1.73 min.Example: 'Obtaining names of local and global groups for current user (WinNT/XP/2K)'
1.98 min.Function: 'midiOutReset'
Function group: 'Windows Multimedia'
2.22 min.Function: 'CeRapiInit'
Function group: 'Remote Application Programming (RAPI)'
Google
Advertise here!