Brew Question: Download Brew PDF

Why does ISOCKET_Release() return one when we are expecting a return value of zero?

Tweet Share WhatsApp

Answer:

When an application calls ISOCKET_Release(), the internal state of the ISocket object changes to "closing," and BREW begins waiting for the asynchronous "closed" event. Since the closed event is received in a callback, the reference count of the ISocket object is incremented to prevent it from being released before its internal state changes to closed.

Download Brew PDF Read All 78 Brew Questions
Previous QuestionNext Question
Explain about Binary Runtime Environment (BREW)?Why does ISHELL_CreateInstance return ECLASSNOTSUPPORT when I try and create an instance of the net manager (AEECLSID_Net)?