I have two classes SslHandshake and SslRequest with according to names functionality.
After client and server handshakes are done in the SslHandshake, I pass both sockets to SslRequest and start transferring data from server to client.
If I is not waiting for finishing of transferring, instance of SslHandshake will be destroyed automatically (in the ~SslHandshake I will destroy both socket objects and transferring in the SslRequest will be aborted).
If I start transferring with waiting, after a few iterations SslRequest::ReadSocketOut will be called successfully, but the readSocketHandle will not be called (so, will be called but with timeout error).
So, I need to handshake in one class and transfer data into another class.
How to prevent destroying instance of SslHandshake until data transferring will be done into SslRequest or how to fix socket reading without callback calling after a few iterations?
I have two classes SslHandshake and SslRequest with according to names functionality.
After client and server handshakes are done in the SslHandshake, I pass both sockets to SslRequest and start transferring data from server to client.
So, I need to handshake in one class and transfer data into another class.
How to prevent destroying instance of SslHandshake until data transferring will be done into SslRequest or how to fix socket reading without callback calling after a few iterations?
SslHandshake.h
SslHandshake.cpp
SslRequest.h
SslRequest.cpp