-
Notifications
You must be signed in to change notification settings - Fork 5
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
Closed
permobergedge
wants to merge
21
commits into
andersc:master
from
OwnZones:star-1254-add-callback-when-client-connected-to-server
Closed
Star 1254 add callback when client connected to server #7
permobergedge
wants to merge
21
commits into
andersc:master
from
OwnZones:star-1254-add-callback-when-client-connected-to-server
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STAR-896: If last client disconnected, break, and stop the server
STAR-840: implement use of alternative log handler
STAR-840: use same log levels as SRT
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
…connected to server
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.