mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
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:
+4
-16
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user