question

Upvotes
Accepted
67 3 2 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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an 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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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