Skip to content

Is there a way to know when a transmission completes sending? #40

Answered by mathieucarbou
JetForMe asked this question in Q&A
Discussion options

You must be logged in to vote

@JetForMe : please have a look at this new example - I added an AsyncSend example showing how to use the ack callback and write for asynchronous send.

  This example demonstrates how to send data to a remote server asynchronously.
   Run on the remote computer: nc -l -p 1234

   You should see in the logs:

Connected!
Will send 5760 bytes...
Acked 1436 bytes in 19 ms
Will send 1436 bytes...
Acked 1436 bytes in 2 ms
Will send 996 bytes...
Waiting for acks...
Acked 1436 bytes in 1 ms
Acked 1436 bytes in 5 ms
Acked 1452 bytes in 17 ms
Acked 996 bytes in 28 ms
Buffer received - next send in 2 sec
Will send 5760 bytes...
Acked 1436 bytes in 14 ms
Will send 1436 bytes...
Acked 1436 bytes in 2 m…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@JetForMe
Comment options

@me-no-dev
Comment options

@mathieucarbou
Comment options

@mathieucarbou
Comment options

Answer selected by mathieucarbou
@JetForMe
Comment options

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