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 multithreading support issue seeking help #212

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

SSL multithreading support issue seeking help #212

shcalm opened this issue Feb 21, 2024 · 2 comments

Comments

@shcalm
Copy link

shcalm commented Feb 21, 2024

Please
tell me about a simple and easy-to-use SSL encryption and decryption black box that supports multithreading.
How do you understand this support for multithreading? Does SSL_Box support multithreading? Can one SSL_Box be called by one thread using onsend and another thread using onrecv?

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

TRANS_BY_GITHUB_AI_ASSISTANT

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

xia-chu commented Feb 22, 2024

onSend and onRecv are callbacks, not something you call.

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

TRANS_BY_GITHUB_AI_ASSISTANT

@shcalm
Copy link
Author

shcalm commented Feb 22, 2024

@xia-chu Thanks for the reply.

My meaning is that I just use the ssl_box class, and put my two threads (using the same socket), one thread receives data, and the other thread sends data. Then combine ssl_box to implement ssl.

Refer to test_ssl.cpp, onSend is to give ssl_box plaintext data, onRecv is to feed ssl_box encrypted data. Is there any problem with this understanding?

Thanks

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

TRANS_BY_GITHUB_AI_ASSISTANT

@alexliyu7352 alexliyu7352 changed the title ssl 支持多线程 问题求助 SSL multithreading support issue seeking help Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants