Select one of the symbols to view example projects that use it.
 
Outline
#define LWIP_HDR_TCPBASE_H
#include "lwip/opt.h"
tcpwnd_size_t
tcp_state
#define TCP_STATE_IS_CLOSING
#define TCP_WRITE_FLAG_COPY
#define TCP_WRITE_FLAG_MORE
#define TCP_PRIO_MIN
#define TCP_PRIO_NORMAL
#define TCP_PRIO_MAX
tcp_debug_state_str(enum tcp_state);
Files
loading...
SourceVuSTM32 Libraries and SamplesLwIPsrc/include/lwip/tcpbase.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** * @file * Base TCP API definitions shared by TCP and ALTCP\n * See also @ref tcp_raw *//* ... */ /* * Copyright (c) 2001-2004 Swedish Institute of Computer Science. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. * * This file is part of the lwIP TCP/IP stack. * * Author: Adam Dunkels <adam@sics.se> * *//* ... */ #ifndef LWIP_HDR_TCPBASE_H #define LWIP_HDR_TCPBASE_H #include "lwip/opt.h" #if LWIP_TCP /* don't build if not configured for use in lwipopts.h */ #ifdef __cplusplus extern "C" { #endif #if LWIP_WND_SCALE typedef u32_t tcpwnd_size_t; #else typedef u16_t tcpwnd_size_t; #endif enum 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 ...}; /* ATTENTION: this depends on state number ordering! */ #define TCP_STATE_IS_CLOSING(state) ((state) >= FIN_WAIT_1) /* Flags for "apiflags" parameter in tcp_write */ #define TCP_WRITE_FLAG_COPY 0x01 #define TCP_WRITE_FLAG_MORE 0x02 #define TCP_PRIO_MIN 1 #define TCP_PRIO_NORMAL 64 #define TCP_PRIO_MAX 127 6 defines const char* tcp_debug_state_str(enum tcp_state s); #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* LWIP_TCP */ /* ... */ #endif /* LWIP_HDR_TCPBASE_H */
Details