##// END OF EJS Templates
Sync
Jeandet Alexis -
r75:00101d966436 GRESB
parent child
Show More
@@ -354,12 +354,12 bool GR_ESB_Manager::connectBridge()
354 int timeout=60;
354 int timeout=60;
355 if(this->Read_soc->state()==QTcpSocket::UnconnectedState)
355 if(this->Read_soc->state()==QTcpSocket::UnconnectedState)
356 {
356 {
357 this->Read_soc->connectToHost(IP,gresb_Conf[virtualLinkIndex].Write_port);
357 this->Read_soc->connectToHost(IP,gresb_Conf[virtualLinkIndex].Receive_port);
358 this->Read_soc->waitForConnected(30000);
358 this->Read_soc->waitForConnected(30000);
359 }
359 }
360 if(this->Write_soc->state()==QTcpSocket::UnconnectedState)
360 if(this->Write_soc->state()==QTcpSocket::UnconnectedState)
361 {
361 {
362 this->Write_soc->connectToHost(IP,gresb_Conf[virtualLinkIndex].Read_port);
362 this->Write_soc->connectToHost(IP,gresb_Conf[virtualLinkIndex].Transmit_port);
363 this->Write_soc->waitForConnected(30000);
363 this->Write_soc->waitForConnected(30000);
364 }
364 }
365 while((this->Read_soc->state()!=QTcpSocket::ConnectedState) && (this->Write_soc->state()!=QTcpSocket::ConnectedState))
365 while((this->Read_soc->state()!=QTcpSocket::ConnectedState) && (this->Write_soc->state()!=QTcpSocket::ConnectedState))
General Comments 0
You need to be logged in to leave comments. Login now