diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-21 23:30:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-21 23:30:24 +0000 |
commit | 1e17d1ae425452aecad6f1fa99cf9b5903ee3880 (patch) | |
tree | 5ae4e64aeb6098defb4cd2f8dc165283085a9658 /nuttx/include | |
parent | 7a8e90a29697e9e19ba4c27236be2061f8c6b734 (diff) | |
download | px4-nuttx-1e17d1ae425452aecad6f1fa99cf9b5903ee3880.tar.gz px4-nuttx-1e17d1ae425452aecad6f1fa99cf9b5903ee3880.tar.bz2 px4-nuttx-1e17d1ae425452aecad6f1fa99cf9b5903ee3880.zip |
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
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/net/uip/uip.h | 20 |
1 files changed, 4 insertions, 16 deletions
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 */ |