We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTP这种应用后期还需要排序,每个UDP包收到之后还得先单独存着,排序之后再拷贝到一个大的缓冲区里汇总,如果调用recvfrom从系统协议栈里收数据的时候就存到malloc的地址里,能少复制一次数据
The text was updated successfully, but these errors were encountered:
啊,我直接调用底层的接口好像就可以了,上层接口能不能考虑实现这种需求,好像有点麻烦
Sorry, something went wrong.
确实是比较底层的接口,可以这样调用:
hio_t* io = udp->channel->io(); hio_set_readbuf(io, buf, len);
Add Channel::setReadBuf for (#415)
9308d5e
No branches or pull requests
RTP这种应用后期还需要排序,每个UDP包收到之后还得先单独存着,排序之后再拷贝到一个大的缓冲区里汇总,如果调用recvfrom从系统协议栈里收数据的时候就存到malloc的地址里,能少复制一次数据
The text was updated successfully, but these errors were encountered: