How to release a bound listening socket in UPA

Having bound a port number the Rssl listening socket with rsslBind(...) how would I subsequently release the socket (and thus the binding) without terminating the process?

Using naked sockets I could close the socket. What is the Rssl equivalent operation?

Best Answer

  • You can use rsslCloseServer(...) and rsslCloseChannel(...) to close the sockets.

    rsslCloseServer() will close the listening socket and prevents new connection attempts.

    However, it will not close the currently open connections. To close the connected sockets, you have to use rsslCloseChannel(...).