1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Provide wl_tcp_state as tcp_state alias (#8609)

This commit is contained in:
Max Prokhorov
2022-06-24 16:41:51 +03:00
committed by GitHub
parent 8048ea52ca
commit 7935bed18f
6 changed files with 3 additions and 24 deletions

View File

@ -69,20 +69,8 @@ enum wl_enc_type { /* Values map to 802.11 encryption suites... */
ENC_TYPE_AUTO = 8
};
#if !defined(LWIP_INTERNAL) && !defined(__LWIP_TCP_H__) && !defined(LWIP_HDR_TCPBASE_H)
enum wl_tcp_state {
CLOSED = 0,
LISTEN = 1,
SYN_SENT = 2,
SYN_RCVD = 3,
ESTABLISHED = 4,
FIN_WAIT_1 = 5,
FIN_WAIT_2 = 6,
CLOSE_WAIT = 7,
CLOSING = 8,
LAST_ACK = 9,
TIME_WAIT = 10
};
#endif
#include <lwip/init.h>
#include <lwip/tcpbase.h>
using wl_tcp_state = tcp_state;
#endif /* WL_DEFINITIONS_H_ */