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

This commit is contained in:
2016-09-27 10:27:37 +00:00
parent 8aad1b413c
commit d7579abfc0

View File

@@ -245,7 +245,7 @@ void PIPeer::initMBcasts(PIStringList al) {
piForeachC (PIString & a, al) {
//piCout << "mcast try" << a;
ce = new PIEthernet();
// ce->setDebug(false);
ce->setDebug(false);
ce->setName("__S__PIPeer_mcast_eth_" + a);
ce->setParameters(0);
ce->setSendAddress(_PIPEER_MULTICAST_IP, _PIPEER_MULTICAST_PORT);
@@ -259,13 +259,13 @@ void PIPeer::initMBcasts(PIStringList al) {
// piCout << "mcast bind to" << a << ce->sendIP();
} else {
delete ce;
piCoutObj << "invalid address for mcast" << a;
//piCoutObj << "invalid address for mcast" << a;
}
}
al.removeAll(_PIPEER_MULTICAST_IP);
piForeachC (PIString & a, al) {
ce = new PIEthernet();
// ce->setDebug(false);
ce->setDebug(false);
ce->setName("__S__PIPeer_bcast_eth_" + a);
ce->setParameters(PIEthernet::Broadcast);
cint = prev_ifaces.getByAddress(a);
@@ -280,7 +280,7 @@ void PIPeer::initMBcasts(PIStringList al) {
// piCout << "bcast bind to" << a << nm;
} else {
delete ce;
piCoutObj << "invalid address for bcast" << a;
//piCoutObj << "invalid address for bcast" << a;
}
}
// eth_lo.setDebug(false);
@@ -302,6 +302,7 @@ void PIPeer::initMBcasts(PIStringList al) {
eth_tcp_srv.setName("__S__PIPeer_eth_TCP_Server");
eth_tcp_srv.init();
eth_tcp_srv.listen("0.0.0.0", _PIPEER_TCP_PORT, true);
eth_tcp_srv.setDebug(false);
CONNECTU(&eth_tcp_srv, newConnection, this, newTcpClient);
eth_tcp_srv.startThreadedRead();
eth_tcp_cli.setName("__S__PIPeer_eth_TCP_Client");