Pages: [1]   Go Down
Author Topic: Ethernet Library: long-life TCP connection and Keep-Alive support  (Read 1301 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you tried making a telnet connection/
Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Some previous arduino telnet discussions for your study:

https://www.google.com/search?hl=en&as_q=telnet&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=http%3A%2F%2Farduino.cc%2Fforum&as_occt=any&safe=off&tbs=&as_filetype=&as_rights=
Logged

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

Pages: [1]   Go Up
Jump to: