Add send() timeout logic

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@420 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2007-12-02 15:11:32 +00:00
parent 929a52b3e0
commit 4c54d7d07e
5 changed files with 92 additions and 38 deletions
+1 -6
View File
@@ -111,12 +111,7 @@ static inline void accept_tcpsender(struct uip_conn *conn, struct accept_s *psta
{
addr->sin_family = AF_INET;
addr->sin_port = conn->rport;
#ifdef CONFIG_NET_IPv6
uip_ipaddr_copy(addr->sin_addr.s_addr, conn->ripaddr);
#else
uip_ipaddr_copy(addr->sin_addr.s_addr, conn->ripaddr);
#endif
}
}
#endif
@@ -400,4 +395,4 @@ errout:
return ERROR;
}
#endif /* CONFIG_NET && CONFIG_NSOCKET_DESCRIPTORS && CONFIG_NET_TCP*/
#endif /* CONFIG_NET && CONFIG_NSOCKET_DESCRIPTORS && CONFIG_NET_TCP */