 |
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: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-07-08 08:58:05 | | Modified: | 2004-10-15 11:31:13 | Visited in last 7 days: 50 |