Skip to content

Star 1254 add callback when client connected to server #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

permobergedge
Copy link
Contributor

No description provided.

permobergedge and others added 21 commits July 7, 2023 09:24
STAR-896: If last client disconnected, break, and stop the server
STAR-840: implement use of alternative log handler
startClient now returns true even if the connection to the remote
end fails. The worker thread of the client will then try to
(re-)connect until a successfull connection is made.

To check if the client actually is connected, a new function:
isClientConnected was added.
If client disconnects or network is going down, the server will now
re-open the server socket and allow the client to re-connect. If
stop() is called, the server closes all sockets and stops as before.
…ller-mode

STAR-951: Change caller mode to do automatic re-connect attempts
* STAR-959 Bump SRT version to v1.5.3

* STAR-959 Fix binding to IPv6 ::
The new parameter failOnConnectionError controls the behaviour
of the startClient functions. If it is set to true and the
initial connection attempt to the server, which is done in
startClient, fails, the startClient call returns true. If it
is set to false the clientStart call returns true and the
worker thread is started which will now start to try to connect
to the server until stop() is called.
…xible

STAR-964: Add new parameter to startClient functions
Clean up development logs from connect attempt
Useful when server is started with port 0, to get which port
it automatically selected.
…_port

Add a small utility function to get the servers listening port
When server is in single client mode, we close the server
socket between each connection. Store the port that was
selected, in case local port was 0, to allow client to
re-connect on the same port.
…port-for-reuse

Star 1089 store automatic selected port for reuse
Since the log handler will be global, the log handler
and the set function was made static.
…ccept-flow

STAR-1232: Refactor how log handler is setup and used
@tomasoh-ateliere tomasoh-ateliere deleted the star-1254-add-callback-when-client-connected-to-server branch June 5, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants