Skip to content

Commit 41949e6

Browse files
committed
header file with common constants for client.state() values
1 parent 39103da commit 41949e6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/utility/tcp_states.h

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#ifndef TCP_STATES_H
2+
#define TCP_STATES_H
3+
4+
#include "w5100.h"
5+
6+
// common constants for client.state() return values
7+
enum tcp_state {
8+
CLOSED = SnSR::CLOSED,
9+
LISTEN = SnSR::LISTEN,
10+
SYN_SENT = SnSR::SYNSENT,
11+
SYN_RCVD = SnSR::SYNRECV,
12+
ESTABLISHED = SnSR::ESTABLISHED,
13+
FIN_WAIT_1 = SnSR::FIN_WAIT,
14+
FIN_WAIT_2 = SnSR::FIN_WAIT,
15+
CLOSE_WAIT = SnSR::CLOSE_WAIT,
16+
CLOSING = SnSR::CLOSING,
17+
LAST_ACK = SnSR::LAST_ACK,
18+
TIME_WAIT = SnSR::TIME_WAIT
19+
};
20+
21+
#endif

0 commit comments

Comments
 (0)