Using socket.setsockopt

Dear Sirs,

Using socket.setsockopt supposed to include mandatory arguments. I couldn’t find any valid constant arguments in documentation.
There are stated usocket.SOL_* and usocket.SO_* which are rejected to be accepted by IDE with syntax error.
Where can I find valid constant argument description for this function?

Sincerely Azer Babaev

These are the possible values for the WINC1500. Note these constants are not exported to Python code so you have to use numeric values if you really have to use them:

// Socket option.
// Used with the @ref setsockopt function
#define SOL_SOCKET      1

// SSL Socket option level.
// Used with the @ref setsockopt function
#define SOL_SSL_SOCKET  2

// Socket option used by the application to enable/disable
// the use of UDP send callbacks.
// Used with the @ref setsockopt function.
#defineSO_SET_UDP_SEND_CALLBACK 0x00

// Set Socket Option Add Membership command value (to join a multicast group).
// Used with the @ref setsockopt function.
#define IP_ADD_MEMBERSHIP   0x01

// Set Socket Option Drop Membership command value (to leave a multicast group).
// Used with the @ref setsockopt function.
#define IP_DROP_MEMBERSHIP  0x02

// Enable or disable TCP keep-alive.
// Used with the @ref setsockopt function.
#define SO_KEEPALIVE    0x04

// Duration between two keepalive transmissions in idle condition (in 500ms increments, so 4 would be 2 seconds). Max 2^32.
// Used with the @ref setsockopt function.
#define TCP_KEEPIDLE    0x05

// Duration between two successive keepalive retransmissions, if acknowledgment to the previous keepalive
// transmission is not received  (in 500ms increments, so 4 would be 2 seconds). Max 255 (127.5 seconds).
// Used with the @ref setsockopt function.
#define TCP_KEEPINTVL   0x06

// Number of retransmissions to be carried out before declaring that the remote end is not available. Max 255.
// Used with the @ref setsockopt function.
#define TCP_KEEPCNT     0x07