mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Implment TCP recv()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@340 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+5
-10
@@ -893,6 +893,11 @@ extern int uip_udpconnect(struct uip_udp_conn *conn, const struct sockaddr_in6 *
|
||||
extern int uip_udpconnect(struct uip_udp_conn *conn, const struct sockaddr_in *addr);
|
||||
#endif
|
||||
|
||||
/* Enable/disable UDP callbacks on a connection */
|
||||
|
||||
extern void uip_udpenable(struct uip_udp_conn *conn);
|
||||
extern void uip_udpdisable(struct uip_udp_conn *conn);
|
||||
|
||||
/* Send a UDP datagram of length len on the current connection.
|
||||
*
|
||||
* This function can only be called in response to a UDP event (poll
|
||||
@@ -1124,14 +1129,4 @@ extern int uip_udpconnect(struct uip_udp_conn *conn, const struct sockaddr_in *a
|
||||
|
||||
#define uip_ipaddr4(addr) (htons(((uint16 *)(addr))[1]) & 0xff)
|
||||
|
||||
/* This function is called user code to set up the wait */
|
||||
|
||||
extern int uip_event_wait(uint16 waitflags);
|
||||
|
||||
/* This function is called from uip_interrupt() to wake up any
|
||||
* waiting threads/tasks.
|
||||
*/
|
||||
|
||||
extern void uip_event_signal(void);
|
||||
|
||||
#endif /* __NET_UIP_UIP_H */
|
||||
|
||||
Reference in New Issue
Block a user