localhost works as a receiver now

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@426 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-01-14 16:40:10 +00:00
parent 4cc8566311
commit 5d88f249a4
3 changed files with 61 additions and 37 deletions

View File

@ -233,10 +233,11 @@ int slsReceiverFunctionList::startListening(){
do {
if(!strlen(eth)){
cout<<"error:eth is empty:"<<eth<<endl;
break;
}
udpSocket = new genericSocket(server_port,genericSocket::UDP,eth);
cout<<"warning:eth is empty.listening to all"<<endl;
udpSocket = new genericSocket(server_port,genericSocket::UDP);
}else
udpSocket = new genericSocket(server_port,genericSocket::UDP,eth);
if (udpSocket->getErrorStatus()){
break;
}