CBielstein / APRSsharp

APRS# - Modern APRS software for the amateur radio community
MIT License
12 stars 5 forks source link

Maintain Connection with APRS-IS Server #123

Closed CBielstein closed 2 years ago

CBielstein commented 2 years ago

Description

As described in #122, the APRS-IS servers stop sending data after 48 hours, causing any connected client to stop receiving new packets.

This change adds an event that re-sends the login message every 6 hours to maintain connection and reset the 48hour timeout counter.

This resolves #122.

This uses System.Threading.Timer instead of System.Timers.Timer to allow multi-threaded use of the underlying TcpClient so that receiving is not interrupted.

Changes

Validation