question

Upvotes
Accepted
67 3 1 8

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?

elektronelektron-sdkrrteta-apielektron-transport-apirssl
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvote
Accepted
4.4k 10 6 9

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(...).

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea