Answers

Question and Answer:

  Home  Brew

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

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.

 155 views

More Questions for you: