git-svn-id: svn://db.shs.com.ru/pip@244 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -143,13 +143,13 @@ PIPeer::PIPeer(const PIString & n): PIIODevice() {
|
||||
//joinMulticastGroup("239.240.241.242");
|
||||
srand(uint(PISystemTime::current(true).toMicroseconds()));
|
||||
//id_ = self_info.name + "_" + PIString::fromNumber(rand());
|
||||
CONNECTU(&timer, tickEvent, this, timerEvent);
|
||||
CONNECTU(&sync_timer, tickEvent, this, timerEvent);
|
||||
prev_ifaces = PIEthernet::interfaces();
|
||||
no_timer = false;
|
||||
// initNetwork();
|
||||
sendSelfInfo();
|
||||
timer.addDelimiter(5);
|
||||
timer.start(1000);
|
||||
sync_timer.addDelimiter(5);
|
||||
sync_timer.start(1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ PIPeer::~PIPeer() {
|
||||
p._data->dt_out.stop();
|
||||
p._data->t.stop(true);
|
||||
}
|
||||
timer.stop();
|
||||
sync_timer.stop();
|
||||
diag_s.stop();
|
||||
diag_d.stop();
|
||||
destroyEths();
|
||||
|
||||
Reference in New Issue
Block a user