summaryrefslogtreecommitdiff
path: root/nuttx/net/tcp/tcp_callback.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-06-24 18:12:49 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-06-24 18:12:49 -0600
commit491ff8e4b440515cd67c713bb07513d18d523b7b (patch)
tree08c7b1638affc44bea2534f8e0ee2a31456c2f13 /nuttx/net/tcp/tcp_callback.c
parent23c5acd6c7e6fc60375cb552b8c2a1d9269ba8d9 (diff)
downloadnuttx-491ff8e4b440515cd67c713bb07513d18d523b7b.tar.gz
nuttx-491ff8e4b440515cd67c713bb07513d18d523b7b.tar.bz2
nuttx-491ff8e4b440515cd67c713bb07513d18d523b7b.zip
Clean up all TCP-related naming
Diffstat (limited to 'nuttx/net/tcp/tcp_callback.c')
-rw-r--r--nuttx/net/tcp/tcp_callback.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/nuttx/net/tcp/tcp_callback.c b/nuttx/net/tcp/tcp_callback.c
index f9a99d7ab..49b2947d8 100644
--- a/nuttx/net/tcp/tcp_callback.c
+++ b/nuttx/net/tcp/tcp_callback.c
@@ -50,6 +50,7 @@
#include <nuttx/net/netdev.h>
#include "uip/uip.h"
+#include "tcp/tcp.h"
/****************************************************************************
* Private Data
@@ -74,7 +75,7 @@
****************************************************************************/
static inline uint16_t
-uip_dataevent(FAR struct uip_driver_s *dev, FAR struct uip_conn *conn,
+uip_dataevent(FAR struct uip_driver_s *dev, FAR struct tcp_conn_s *conn,
uint16_t flags)
{
uint16_t ret;
@@ -104,7 +105,7 @@ uip_dataevent(FAR struct uip_driver_s *dev, FAR struct uip_conn *conn,
* partial packets will not be buffered.
*/
- recvlen = uip_datahandler(conn, buffer, buflen);
+ recvlen = tcp_datahandler(conn, buffer, buflen);
if (recvlen < buflen)
#endif
{
@@ -135,7 +136,7 @@ uip_dataevent(FAR struct uip_driver_s *dev, FAR struct uip_conn *conn,
****************************************************************************/
/****************************************************************************
- * Function: uip_tcpcallback
+ * Function: tcp_callback
*
* Description:
* Inform the application holding the TCP socket of a change in state.
@@ -145,8 +146,8 @@ uip_dataevent(FAR struct uip_driver_s *dev, FAR struct uip_conn *conn,
*
****************************************************************************/
-uint16_t uip_tcpcallback(struct uip_driver_s *dev, struct uip_conn *conn,
- uint16_t flags)
+uint16_t tcp_callback(FAR struct uip_driver_s *dev, FAR struct tcp_conn_s *conn,
+ uint16_t flags)
{
/* Preserve the UIP_ACKDATA, UIP_CLOSE, and UIP_ABORT in the response.
* These is needed by uIP to handle responses and buffer state. The
@@ -206,7 +207,7 @@ uint16_t uip_tcpcallback(struct uip_driver_s *dev, struct uip_conn *conn,
}
/****************************************************************************
- * Function: uip_datahandler
+ * Function: tcp_datahandler
*
* Description:
* Handle data that is not accepted by the application. This may be called
@@ -232,7 +233,7 @@ uint16_t uip_tcpcallback(struct uip_driver_s *dev, struct uip_conn *conn,
****************************************************************************/
#ifdef CONFIG_NET_TCP_READAHEAD
-uint16_t uip_datahandler(FAR struct uip_conn *conn, FAR uint8_t *buffer,
+uint16_t tcp_datahandler(FAR struct tcp_conn_s *conn, FAR uint8_t *buffer,
uint16_t buflen)
{
FAR struct iob_s *iob;