mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
Add altcp to Filelists.mk
Some compile fixes in altcp_tcp.c and httpd.c
This commit is contained in:
parent
f7d215043c
commit
060a47f88a
@ -42,6 +42,8 @@ COREFILES=$(LWIPDIR)/core/init.c \
|
|||||||
$(LWIPDIR)/core/raw.c \
|
$(LWIPDIR)/core/raw.c \
|
||||||
$(LWIPDIR)/core/stats.c \
|
$(LWIPDIR)/core/stats.c \
|
||||||
$(LWIPDIR)/core/sys.c \
|
$(LWIPDIR)/core/sys.c \
|
||||||
|
$(LWIPDIR)/core/altcp.c \
|
||||||
|
$(LWIPDIR)/core/altcp_tcp.c \
|
||||||
$(LWIPDIR)/core/tcp.c \
|
$(LWIPDIR)/core/tcp.c \
|
||||||
$(LWIPDIR)/core/tcp_in.c \
|
$(LWIPDIR)/core/tcp_in.c \
|
||||||
$(LWIPDIR)/core/tcp_out.c \
|
$(LWIPDIR)/core/tcp_out.c \
|
||||||
|
@ -1203,7 +1203,7 @@ http_send_data_ssi(struct altcp_pcb *pcb, struct http_state *hs)
|
|||||||
* have to split the insert string between two tcp_write operations. */
|
* have to split the insert string between two tcp_write operations. */
|
||||||
|
|
||||||
/* How much data could we send? */
|
/* How much data could we send? */
|
||||||
len = tcp_sndbuf(pcb);
|
len = altcp_sndbuf(pcb);
|
||||||
|
|
||||||
/* Do we have remaining data to send before parsing more? */
|
/* Do we have remaining data to send before parsing more? */
|
||||||
if(ssi->parsed > hs->file) {
|
if(ssi->parsed > hs->file) {
|
||||||
@ -1217,7 +1217,7 @@ http_send_data_ssi(struct altcp_pcb *pcb, struct http_state *hs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If the send buffer is full, return now. */
|
/* If the send buffer is full, return now. */
|
||||||
if(tcp_sndbuf(pcb) == 0) {
|
if(altcp_sndbuf(pcb) == 0) {
|
||||||
return data_to_send;
|
return data_to_send;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
|
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
|
||||||
|
|
||||||
#include "lwip/altcp.h"
|
#include "lwip/altcp.h"
|
||||||
|
#include "lwip/altcp_tcp.h"
|
||||||
#include "lwip/priv/altcp_priv.h"
|
#include "lwip/priv/altcp_priv.h"
|
||||||
#include "lwip/tcp.h"
|
#include "lwip/tcp.h"
|
||||||
#include "lwip/mem.h"
|
#include "lwip/mem.h"
|
||||||
@ -343,7 +344,7 @@ altcp_tcp_dealloc(struct altcp_pcb *conn)
|
|||||||
/* no private state to clean up */
|
/* no private state to clean up */
|
||||||
}
|
}
|
||||||
|
|
||||||
err_t
|
static err_t
|
||||||
altcp_tcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port)
|
altcp_tcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port)
|
||||||
{
|
{
|
||||||
if (conn) {
|
if (conn) {
|
||||||
@ -354,7 +355,7 @@ altcp_tcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LWIP_DEBUG
|
#ifdef LWIP_DEBUG
|
||||||
enum tcp_state
|
static enum tcp_state
|
||||||
altcp_tcp_dbg_get_tcp_state(struct altcp_pcb *conn)
|
altcp_tcp_dbg_get_tcp_state(struct altcp_pcb *conn)
|
||||||
{
|
{
|
||||||
if (conn) {
|
if (conn) {
|
||||||
|
Loading…
Reference in New Issue
Block a user