This function is for compatibility with older versions. Do not use unless there is a special reason.
This function sets the operating options for socket transmission.
Only available on UDP sockets.
Syntax
int SetSockUdpSendResponse(
SOCKET sock,
char response
);
Parameters
- sock
- [in] Socket descriptor
- response
- [in] Specify whether to wait for the UDP transmission response.
Value Description WLAN_SOCKUDP_SEND_DISABLE Disables UDP callback response. WLAN_SOCKUDP_SEND_ENABLE Enables UDP callback response.
(Defult)
Return value
The following values will be returned.Value | Description |
---|---|
SOCK_ERR_NO_ERROR | Succeeded |
M2M_ERR_SLEEP_FAIL | Initialize with InitializeWlan or SysWLANInit function. |
Other than the above | Failed |
Remarks
Sets operating options for socket transmission. (UDP compatible).Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/11/26