Skip to content
Discussion options

You must be logged in to vote

If your application wants real time behavior, it should use the "just in time" API, as explained in doc/send_receive_data.md, look for "sending datagrams just in time":

  • when you receive a packet to be forwarded, add it to the internal queue and set the datagram readiness as active using the API picoquic_mark_datagram_ready.
  • when you receive the callback picoquic_callback_prepare_datagram, prepare the buffer as explained in the doc. In the call to picoquic_provide_datagram_buffer_ex, set the is_still_active flag to 1 if there are more datagrams in the queue, to 0 if not.

If your implementation is multi-threaded (it probably should be), wake up the background thread using picoquic_wake_up…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@huitema
Comment options

Answer selected by a-andre
@a-andre
Comment options

@a-andre
Comment options

@huitema
Comment options

@a-andre
Comment options

Comment options

You must be logged in to vote
0 replies
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