openssl中BIO_pending()和BIO_wpending()有什么区别?
我检查了 Openssl 手册页上的BIO待处理。
无法区分 *_pening 和 *_wpending 之间的区别。 您能分享一下差异吗?
谢谢。
int BIO_pending(BIO *b);
int BIO_wpending(BIO *b);
size_t BIO_ctrl_pending(BIO *b);
size_t BIO_ctrl_wpending(BIO *b);
I checked the BIO pending on Openssl man page.
Failed to get the difference between *_pening and *_wpending.
Could you share the difference.
Thanks.
int BIO_pending(BIO *b);
int BIO_wpending(BIO *b);
size_t BIO_ctrl_pending(BIO *b);
size_t BIO_ctrl_wpending(BIO *b);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BIO_pending
返回 BIO 的“读取”缓冲区中等待的数据量,即已在内部读取但尚未通过BIO_read()
返回到应用程序的数据打电话(或类似)。BIO_wpending
返回 BIO“写入”缓冲区中等待的数据量,即应用程序通过调用BIO_write
(或类似)要求 BIO 写入的内容,但BIO实际上还没有写出来。BIO_pending
returns the amount of data waiting in the BIO's "read" buffer i.e. stuff that it has already read internally but has not yet been returned to the application via aBIO_read()
call (or similar).BIO_wpending
returns the amount of data waiting in the BIO's "write" buffer, i.e. stuff that the application has asked the BIO to write via a call toBIO_write
(or similar), but the BIO hasn't actually written yet.