[riot-notifications] [RIOT] conn: extend API with timeout support (#3921)

Kaspar Schleiser notifications at github.com
Wed Sep 30 11:19:25 CEST 2015


> @@ -52,11 +52,33 @@ static inline void _srcport(uint16_t *port, gnrc_pktsnip_t *hdr)
>  int gnrc_conn_recvfrom(conn_t *conn, void *data, size_t max_len, void *addr, size_t *addr_len,
>                         uint16_t *port)
>  {
> +    return gnrc_conn_recvfrom_timeout(conn, data, max_len, addr, addr_len, port, CONN_NO_TIMEOUT);

@DipSwitch I still have no clue. Could you elaborate why a simple

```xtimer_set_msg_timeout(timeout);
`msg_receive();```

is not enough? (no need to put that into doxygen).



---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3921/files#r40773638
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150930/d364f673/attachment-0001.html>


More information about the notifications mailing list