[erlang-questions] gen_tcp send non-blocking in erlang?

Matthias Lang matthias@REDACTED
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:

   http://www.erlang.se/workshop/2005/tcpip_presentation.pdf

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.

Matthias



More information about the erlang-questions mailing list