mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-07 13:20:02 +02:00
included rx_tcpport in command line for receiver
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@641 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
05f54e996c
commit
5036cdc357
@ -161,6 +161,20 @@ slsReceiverFuncs::slsReceiverFuncs(int argc, char *argv[], int &success):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//tcp port
|
||||||
|
else if(!strcasecmp(argv[iarg],"-rx_tcpport")){
|
||||||
|
if(iarg+1==argc){
|
||||||
|
cout << "no port given after -rx_tcpport in command line. Exiting." << endl;
|
||||||
|
success=FAIL;
|
||||||
|
}else{
|
||||||
|
if(sscanf(argv[iarg+1],"%d",&port_no))
|
||||||
|
cout<<"dataport:"<<port_no<<endl;
|
||||||
|
else{
|
||||||
|
cout << "could not decode port in command line. \n\nExiting." << endl;
|
||||||
|
success=FAIL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user