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: connecting to a news server (NNTP, port 119)
WSASend
..msdn    Add comment     W32 Constants      Translate this page
Sends data on a connected socket.
Code examples:
Winsock: connecting to a news server (NNTP, port 119)
Declaration:
int WSASend(
  SOCKET s,
  LPWSABUF lpBuffers,
  DWORD dwBufferCount,
  LPDWORD lpNumberOfBytesSent,
  DWORD dwFlags,
  LPWSAOVERLAPPED lpOverlapped,
  LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
);

FoxPro declaration:
DECLARE INTEGER WSASend IN ws2_32;
    INTEGER s,;
    STRING @lpBuffers,;
    LONG dwBufferCount,;
    LONG @lpNumberOfBytesSent,;
    LONG dwFlags,;
    INTEGER lpOverlapped,;
    INTEGER lpCompletionRoutine
Parameters:
s
[in] A descriptor that identifies a connected socket.

lpBuffers
[in] A pointer to an array of WSABUF structures. Each WSABUF structure contains a pointer to a buffer and the length, in bytes, of the buffer.

dwBufferCount
[in] Number of WSABUF structures in the lpBuffers array.

lpNumberOfBytesSent
[out] A pointer to the number, in bytes, sent by this call if the I/O operation completes immediately.

dwFlags
[in] Flags used to modify the behavior of the WSASend function call. For more information, see Using dwFlags in the Remarks section.

lpOverlapped
[in] A pointer to a WSAOVERLAPPED structure. This parameter is ignored for nonoverlapped sockets.

lpCompletionRoutine
[in] A pointer to the completion routine called when the send operation has been completed.
Return value:
If no error occurs and the send operation has completed immediately, WSASend returns zero.
Word Index links for the WSASend :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-05-15 19:32:23
Modified: 2006-05-15 19:34:20
Visited in last 7 days: 16
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.194.75)
16 sec.Function: 'GdipNewInstalledFontCollection'
31 sec.
Function group: 'Path'
47 sec.Function: 'GdipGetPropertyIdList'
1.05 min.Function: 'SQLAllocHandle'
1.32 min.Function: 'SearchPath'
1.6 min.Function: 'CreateMD5SSOHash'
1.87 min.Function: 'CeFindAllFiles'
2.13 min.Function: 'PathIsDirectory'
2.38 min.Function: 'MQHandleToFormatName'
2.65 min.
Function group: 'Desktop Window Manager (DWM)'
Google
Advertise here!