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
This commit is contained in:
patacongo
2007-11-21 23:30:24 +00:00
parent 7d1031cc71
commit 21c9f463a2
4 changed files with 79 additions and 34 deletions
+4 -16
View File
@@ -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 */