Skip to content
New issue

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

ssl 支持多线程 问题求助 #212

Open
shcalm opened this issue Feb 21, 2024 · 2 comments
Open

ssl 支持多线程 问题求助 #212

shcalm opened this issue Feb 21, 2024 · 2 comments

Comments

@shcalm
Copy link

shcalm commented Feb 21, 2024

请问
简单易用的ssl加解密黑盒,支持多线程。
这个支持多线程怎么理解呀?SSL_Box支持多线程么?一个ssl_box 可以一个线程调用onsend 另外一个线程调用onrecv么?

@shcalm shcalm changed the title ssl 支持多线程 问题求助? ssl 支持多线程 问题求助 Feb 21, 2024
@xia-chu
Copy link
Member

xia-chu commented Feb 22, 2024

onSend和onRecv是回调啊 不是你调用的

@shcalm
Copy link
Author

shcalm commented Feb 22, 2024

@xia-chu 感谢回复哈.
我的意思是我就使用 ssl_box这个类,把我的两个thread(使用相同socket),一个thread recv数据,一个thread发送数据.然后结合ssl_box来实现ssl.
参考test_ssl.cpp,onSend是给ssl_box明文数据,onRecv是喂给ssl_box加密数据. 这种理解有问题么?
多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants