ZLToolKit icon indicating copy to clipboard operation
ZLToolKit copied to clipboard

SSL multithreading support issue seeking help

Open shcalm opened this issue 1 year ago • 2 comments

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 avatar Feb 21 '24 09:02 shcalm

onSend and onRecv are callbacks, not something you call.

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

TRANS_BY_GITHUB_AI_ASSISTANT

xia-chu avatar Feb 22 '24 04:02 xia-chu

@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

shcalm avatar Feb 22 '24 05:02 shcalm