mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
extmod/modusocket: Add makefile() method and common socket options.
This commit is contained in:
committed by
Damien George
parent
b23178a9c0
commit
155eb1361e
@@ -38,6 +38,15 @@
|
||||
#define MOD_NETWORK_STA_IF (0)
|
||||
#define MOD_NETWORK_AP_IF (1)
|
||||
|
||||
// Socket level option.
|
||||
#define MOD_NETWORK_SOL_SOCKET (0x0FFF)
|
||||
|
||||
// Common option flags per-socket.
|
||||
#define MOD_NETWORK_SO_REUSEADDR (0x0004)
|
||||
#define MOD_NETWORK_SO_KEEPALIVE (0x0008)
|
||||
#define MOD_NETWORK_SO_SNDTIMEO (0x1005)
|
||||
#define MOD_NETWORK_SO_RCVTIMEO (0x1006)
|
||||
|
||||
#if MICROPY_PY_LWIP
|
||||
struct netif;
|
||||
void mod_network_lwip_poll_wrapper(uint32_t ticks_ms);
|
||||
|
||||
Reference in New Issue
Block a user