Go Down

Topic: Ethernet Library: long-life TCP connection and Keep-Alive support (Read 1 time) previous topic - next topic

themilkman

Hi,
I try to establish a long life TCP (not http) connection between an Arduino with Ethernet-Shield (Client) and a server for my project.
Therefore I need a stable connection for...as long as possible.  :smiley-mr-green:

I'd like to ensure that both componets are connected to each other. On the server side (Java) there are of course the capabilities for TCP keep-alive connections. I thought the Ethernet Shield  would support this feature too. But now I do not find any useful information about this anymore. Am I wrong? In that case, what would be your recommendation to ensure a fast detection of a dead connection and a reconnect? Are there any best practices?
If it does support it - is it enabled by default (would break with the RFC I guess) or how may I configure/enable it?

And do other Shields like the redfly wireless shield support it?

Thank you very much for any answers/examples/tipps :-)

themilkman

zoomkat

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

themilkman

zoomkat: No, I did not yet. Currently I have no problem with the connection but the Arduino might be set in a more unreliable network environment. What could/should I see by connecting via telnet? Thanks for explanation.

zoomkat

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

Go Up