summaryrefslogtreecommitdiffstats
path: root/pica-client/skynet.h
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-05-20 22:02:24 +0400
committerAnton <anton@picapica>2019-05-20 22:02:24 +0400
commit7db26f9d7c28d2b0320a213b6e6d20d296f8b282 (patch)
tree2604444b6637040ce1424fdcfd64c30f88945921 /pica-client/skynet.h
parent8d5582bc573f83dbb45f527fc47039664b5f939e (diff)
downloadpica-pica-7db26f9d7c28d2b0320a213b6e6d20d296f8b282.tar.gz
pica-pica-7db26f9d7c28d2b0320a213b6e6d20d296f8b282.zip
pica-client: improved reconnect behavior
Diffstat (limited to 'pica-client/skynet.h')
-rw-r--r--pica-client/skynet.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pica-client/skynet.h b/pica-client/skynet.h
index 875277e..79a368e 100644
--- a/pica-client/skynet.h
+++ b/pica-client/skynet.h
@@ -92,12 +92,17 @@ private:
QMap<QByteArray, QList<QString> > msgqueues;
QMap<QByteArray, QList<QString> > sndfilequeues;
- int retry_timer_id;
+ QMap<QByteArray, quint32> c2c_reconnect_timeouts;
+ int nodelink_reconnect_timer_id;
int event_loop_timer_id;
int file_transfer_timer_id;
+ int c2c_reconnect_timer_id;
void timerEvent(QTimerEvent * e);
+ void reconnect_c2c();
+ void update_c2c_reconnect_timeout(QByteArray peer_id);
+ void reset_c2c_reconnect_timeout(QByteArray peer_id);
void flush_queues(QByteArray to);
struct PICA_c2c *find_active_chan(QByteArray peer_id);
QList<QByteArray> filter_existing_chans(QList<QByteArray> peer_ids);