 |
setsockopt ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The setsockopt function sets a socket option. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int setsockopt(
SOCKET s,
int level,
int optname,
const char* optval,
int optlen
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER setsockopt IN ws2_32;
INTEGER s,;
INTEGER level,;
INTEGER optname,;
STRING @ optval,;
INTEGER optlen
|
 |
 |
 |
| Parameters: |
 |
s
[in] Descriptor identifying a socket.
level
[in] Level at which the option is defined. Example: SOL_SOCKET.
optname
[in] Socket option for which the value is to be set.
optval
[in] Pointer to the buffer in which the value for the requested option is specified.
optlen
[in] Size of the optval buffer, in bytes.
|
 |
 |
| Return value: |
 |
| If no error occurs, setsockopt returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError. |
 |
 |
| My comment: |
 |
| See also getsockopt function. |
 |
 |
| Word Index links for the setsockopt : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-06-20 22:07:57 | | Modified: | 2004-06-20 22:12:34 | Visited in last 7 days: 19 |