[OpenWrt-Devel] [PATCH 4/5] ustream: add function ustream_fill_with_read_buf().
Felix Fietkau
nbd at openwrt.org
Thu Dec 11 11:33:17 EST 2014
On 2014-11-11 11:51, Yousong Zhou wrote:
> Useful in the following use pattern.
>
> int available = ustream_pending_data(s, false);
> if (available >= sizeof(struct msghdr)) {
> struct msghdr h;
> ustream_fill_with_read_buf(s, &h, sizeof(h));
> }
>
> Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
I'd prefer to have this named ustream_read() instead - similar to
ustream_write().
- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list