diff options
Diffstat (limited to 'nuttx/net/tcp')
-rw-r--r-- | nuttx/net/tcp/Kconfig | 1 | ||||
-rw-r--r-- | nuttx/net/tcp/tcp.h | 2 | ||||
-rw-r--r-- | nuttx/net/tcp/tcp_send_buffered.c | 2 | ||||
-rw-r--r-- | nuttx/net/tcp/tcp_send_unbuffered.c | 8 |
4 files changed, 6 insertions, 7 deletions
diff --git a/nuttx/net/tcp/Kconfig b/nuttx/net/tcp/Kconfig index b46b1ab84..da996ce25 100644 --- a/nuttx/net/tcp/Kconfig +++ b/nuttx/net/tcp/Kconfig @@ -58,7 +58,6 @@ config NET_TCP_WRITE_BUFFERS bool "Enable TCP/IP write buffering" default n select NET_IOB - depends on !NET_PKT ---help--- Write buffers allows buffering of ongoing TCP/IP packets, providing for higher performance, streamed output. diff --git a/nuttx/net/tcp/tcp.h b/nuttx/net/tcp/tcp.h index 61089c905..4481774d5 100644 --- a/nuttx/net/tcp/tcp.h +++ b/nuttx/net/tcp/tcp.h @@ -70,7 +70,6 @@ extern "C" * Public Function Prototypes ****************************************************************************/ -#ifdef CONFIG_NET_TCP /* Defined in tcp_conn.c ****************************************************/ void tcp_initialize(void); @@ -130,7 +129,6 @@ uint16_t tcp_callback(FAR struct uip_driver_s *dev, uint16_t tcp_datahandler(FAR struct tcp_conn_s *conn, FAR uint8_t *buffer, uint16_t nbytes); #endif -#endif /* CONFIG_NET_TCP */ /**************************************************************************** * Function: psock_tcp_send diff --git a/nuttx/net/tcp/tcp_send_buffered.c b/nuttx/net/tcp/tcp_send_buffered.c index 1a2e53acc..7e0878754 100644 --- a/nuttx/net/tcp/tcp_send_buffered.c +++ b/nuttx/net/tcp/tcp_send_buffered.c @@ -662,7 +662,7 @@ static uint16_t psock_send_interrupt(FAR struct uip_driver_s *dev, * Function: psock_tcp_send * * Description: - * The psock_tcp_send() call may be used only when the TCP socket is in a + * psock_tcp_send() call may be used only when the TCP socket is in a * connected state (so that the intended recipient is known). * * Parameters: diff --git a/nuttx/net/tcp/tcp_send_unbuffered.c b/nuttx/net/tcp/tcp_send_unbuffered.c index c0c9568e8..9feee3b62 100644 --- a/nuttx/net/tcp/tcp_send_unbuffered.c +++ b/nuttx/net/tcp/tcp_send_unbuffered.c @@ -57,6 +57,7 @@ #include "net.h" #include "uip/uip.h" +#include "tcp/tcp.h" /**************************************************************************** * Pre-processor Definitions @@ -443,10 +444,10 @@ end_wait: ****************************************************************************/ /**************************************************************************** - * Function: tcp_send + * Function: psock_tcp_send * * Description: - * The tcp_send() call may be used only when the TCP socket is in a + * psock_tcp_send() call may be used only when the TCP socket is in a * connected state (so that the intended recipient is known). * * Parameters: @@ -499,7 +500,8 @@ end_wait: * ****************************************************************************/ -ssize_t tcp_send(FAR struct socket *psock, FAR const void *buf, size_t len) +ssize_t psock_tcp_send(FAR struct socket *psock, + FAR const void *buf, size_t len) { struct send_s state; uip_lock_t save; |