[erlang-questions] gen_tcp send non-blocking in erlang?
Mon Mar 17 12:19:42 CET 2014
On Monday, March 17, Jon Schneider wrote:
> > Whether any mechanism in erlang to check the sent message delivary?
> TCP doesn't so how can Erlang ?
[This is going beyond what the original poster probably had in mind, but
it's an interesting problem.]
TCP _does_ know which data has been ACKed. But that information gets
lost somewhere between the TCP stack and ordinary programs.
Something like this:
could be tweaked so that it really does let Erlang code figure out whether
or not a particular byte has reached the remote TCP stack.
More information about the erlang-questions