Some plumbing to expose the actual bound SHS port so that I can make a dynamic room app.

This commit is contained in:
2024-03-07 21:03:14 -05:00
parent cf187ee46b
commit cb94ed6a2a
4 changed files with 21 additions and 10 deletions

View File

@ -316,8 +316,9 @@ void tf_ssb_connect_str(tf_ssb_t* ssb, const char* address);
** Begin listening for SHS connections on the given port.
** @param ssb The SSB instance.
** @param port The port number.
** @return The assigned port on success or 0 on failure.
*/
void tf_ssb_server_open(tf_ssb_t* ssb, int port);
int tf_ssb_server_open(tf_ssb_t* ssb, int port);
/**
** Stop listening for SHS connections.