mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
Added receive timeout via setsockopt(SO_RCVTIMEO)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@336 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -67,7 +67,7 @@ struct dhcpc_state
|
||||
****************************************************************************/
|
||||
|
||||
void *dhcpc_open(const void *mac_addr, int mac_len);
|
||||
int dhcpc_request(void *handle, struct dhcpc_state *ds);
|
||||
int dhcpc_request(void *handle, struct dhcpc_state *presult);
|
||||
void dhcpc_close(void *handle);
|
||||
|
||||
#endif /* NET_UIP_DHCP_H__ */
|
||||
|
||||
@@ -54,7 +54,7 @@ EXTERN void resolv_getserver(const struct sockaddr_in6 *dnsserver);
|
||||
EXTERN int resolv_query(const char *name, struct sockaddr_in6 *addr);
|
||||
#else
|
||||
EXTERN void resolv_conf(const struct sockaddr_in *dnsserver);
|
||||
EXTERN void resolv_getserver(const struct sockaddr_in *dnsserver);
|
||||
EXTERN void resolv_getserver(struct sockaddr_in *dnsserver);
|
||||
EXTERN int resolv_query(const char *name, struct sockaddr_in *addr);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1126,8 +1126,7 @@ extern int uip_udpconnect(struct uip_udp_conn *conn, const struct sockaddr_in *a
|
||||
|
||||
/* This function is called user code to set up the wait */
|
||||
|
||||
#define uip_event_wait(waitflags) uip_event_timedwait(waitflags,0)
|
||||
extern int uip_event_timedwait(uint16 waitflags, int timeout);
|
||||
extern int uip_event_wait(uint16 waitflags);
|
||||
|
||||
/* This function is called from uip_interrupt() to wake up any
|
||||
* waiting threads/tasks.
|
||||
|
||||
Reference in New Issue
Block a user