SSLRead() causes SSLWriteFunc to be called?
site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com Thanks, David Francis President Francis Technical Services, LLC _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists.... I am just beginning to work with the Secure Transport APIs. I have a setup which has a BSD socket opened and the SSLHandshake() on the main thread thread. Once the initial handshake is complete, I start a 2nd thread to read() the incoming bytes from the server. This 2nd thread basically blocks until some incoming data is available from the server. Strangely, when my 2nd thread calls SSLRead() my SSLWriteFunc callback is being hit. I have a breakpoint in my SSLWriteFunc and the stack trace shows that only SSLRead() is being called on the 2nd thread. Am I doing something wrong? How are people using Secure Transport in a multi-threaded environment? This email sent to site_archiver@lists.apple.com
participants (1)
-
David Francis