Skip to content

Send data by QUIC server in arbitrary moment over existing connection #337

Answered by Skio22
jurcw asked this question in Q&A
Discussion options

You must be logged in to vote

I tried to implement my own QUIC server and client and I managed to figure it out, if you want to do it my way, you will need to use a little bit of threading. If you want to use this as a transport to another protocol like me, for example FTP or SSH server. Just initialize the QUIC connection as always, you can find it in the examples. On first quic_event_received function call, insert the identifier of event into some global Queue (identifier is in event.stream_id) variable and start a new thread (pass the receive QUIC data into the thread as argument). In the thread create a TCP socket for your TCP protocol, and send these data through TCP. After that, save the TCP socket connection to…

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Karthikdasari0423
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Karthikdasari0423
Comment options

@jurcw
Comment options

@Karthikdasari0423
Comment options

Answer selected by jurcw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants