git-svn-id: svn://db.shs.com.ru/pip@383 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-04-17 12:45:18 +00:00
parent 9f8db3a769
commit ff647e6054
4 changed files with 4 additions and 6 deletions

View File

@@ -19,7 +19,6 @@
#include "pipeer.h"
#include "piconfig.h"
#include "piincludes_p.h"
#define _PIPEER_MSG_SIZE 4000
#define _PIPEER_MSG_TTL 100
@@ -149,7 +148,7 @@ PIPeer::PIPeer(const PIString & n): PIIODevice(), inited__(false), eth_tcp_srv(P
self_info.dist = 0;
self_info.time = PISystemTime::current();
//joinMulticastGroup("239.240.241.242");
srand(uint(PISystemTime::current(true).toMicroseconds()));
randomize();
//id_ = self_info.name + "_" + PIString::fromNumber(rand());
CONNECTU(&sync_timer, tickEvent, this, timerEvent);
prev_ifaces = PIEthernet::interfaces();