From 1e17d1ae425452aecad6f1fa99cf9b5903ee3880 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 21 Nov 2007 23:30:24 +0000 Subject: Fix confusion in listening socket vs accepted sockets git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@395 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/net/uip/uip.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'nuttx/include/net') diff --git a/nuttx/include/net/uip/uip.h b/nuttx/include/net/uip/uip.h index 45a53bccb..200276225 100644 --- a/nuttx/include/net/uip/uip.h +++ b/nuttx/include/net/uip/uip.h @@ -572,25 +572,13 @@ extern int uip_tcpconnect(struct uip_conn *conn, const struct sockaddr_in6 *addr extern int uip_tcpconnect(struct uip_conn *conn, const struct sockaddr_in *addr); #endif -/* Start listening to the specified port. - * - * Note: Since this function expects the port number in network byte - * order, a conversion using HTONS() or htons() is necessary. - * - * port A 16-bit port number in network byte order. - */ +/* Start listening to the port bound to the specified TCP connection */ -extern int uip_listen(uint16 port); +extern int uip_listen(struct uip_conn *conn); -/* Stop listening to the specified port. - * - * Note: Since this function expects the port number in network byte - * order, a conversion using HTONS() or htons() is necessary. - * - * port A 16-bit port number in network byte order. - */ +/* Stop listening to the port bound to the specified TCP connection */ -extern int uip_unlisten(uint16 port); +extern int uip_unlisten(struct uip_conn *conn); /* Check if a connection has outstanding (i.e., unacknowledged) data */ -- cgit v1.2.3