 |
|
|  |  |
 |
WSAConnect ..msdn Add comment W32 Constants Translate this page |
 |
 |
Establishes a connection to another socket application, exchanges connect data, and specifies required quality of service based on the specified FLOWSPEC structure.
|
 |  | | Code examples: |  | |
|
 |  | | Declaration: |  |  |
int WSAConnect(
SOCKET s,
const struct sockaddr* name,
int namelen,
LPWSABUF lpCallerData,
LPWSABUF lpCalleeData,
LPQOS lpSQOS,
LPQOS lpGQOS
);
|
 |  |  | | FoxPro declaration: |  |  |
DECLARE INTEGER WSAConnect IN ws2_32;
INTEGER s,;
STRING @sname,;
INTEGER namelen,;
INTEGER lpCallerData,;
INTEGER lpCalleeData,;
INTEGER lpSQOS,;
INTEGER lpGQOS
|
 |  |  | | Parameters: |  | s
[in] Descriptor identifying an unconnected socket.
name
[in] Name of the socket in a sockaddr structure in the other application to which to connect.
namelen
[in] Length of name, in bytes.
lpCallerData
[in] Pointer to the user data that is to be transferred to the other socket during connection establishment. See Remarks.
lpCalleeData
[out] Pointer to the user data that is to be transferred back from the other socket during connection establishment. See Remarks.
lpSQOS
[in] Pointer to the FLOWSPEC structures for socket s, one for each direction.
lpGQOS
[in] Reserved for future use with socket groups. A pointer to the FLOWSPEC structures for the socket group (if applicable). Should be NULL. |
 |  | | Return value: |  | | If no error occurs, WSAConnect returns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code can be retrieved by calling WSAGetLastError. |
 |  | | Usage: |  |
cBuffer = num2word(AF_INET) +;
num2word(htons(m.nPort)) +;
num2dword(inet_addr(m.cIP)) +;
Repli(CHR(0),8)
= WSAConnect(m.hSocket, @cBuffer,;
Len(m.cBuffer), 0,0,0,0)
|
 |  | | Word Index links for the WSAConnect : |  | |
|
 |  | | Translate this page: |  | |  |  | | • |  | | Created: | 2006-05-15 16:13:21 | | Modified: | 2007-06-11 16:23:14 | Visited in last 7 days: 15 |
|
 |
 |
 |
 |
Copyright © 2001-2013
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.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc. |
 |
 |
|
 |