russelltg/srt-rs

Is there a way to connect and read from the connection without async ?

Lighty0410 opened this issue · 4 comments

Hello everyone!
There's a useful example of how to connect&read from the socket using async - https://github.com/russelltg/srt-rs/blob/master/srt-tokio/examples/receiver.rs.
But is there a way to do all the same things without the async environment using srt-protocol only ? If so, how can i do this ?
Thanks in advance.

Yes there is! You'll have to write some code of course.....

There are two good examples for you to use:

srt-protocol/tests/lossy_deterministic.rs: A test for simulating networks that uses srt-protocol directly
srt-tokio/src/socket.rs: The tokio socket implementation

If you tell me your usecase maybe I can help you more.

Yes there is! You'll have to write some code of course.....

There are two good examples for you to use:

srt-protocol/tests/lossy_deterministic.rs: A test for simulating networks that uses srt-protocol directly srt-tokio/src/socket.rs: The tokio socket implementation

If you tell me your usecase maybe I can help you more.

Thanks for the tips! Can i create a PR with a dedicated folder for sync connections when it'll be ready ?

Definitely! Feel free to open a draft pr at any point if you want feedback.

Closing this as I believe I have answered the question--feel free to reopen if that is not the case