mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-22 17:47:59 +02:00
changing signature from std::string to const std::string& for client receiver ip functions
This commit is contained in:
@ -2902,7 +2902,7 @@ int slsDetector::getReceiverStreamingPort() {
|
||||
return thisDetector->receiver_zmqport;
|
||||
}
|
||||
|
||||
void slsDetector::setClientStreamingIP(std::string sourceIP) {
|
||||
void slsDetector::setClientStreamingIP(const std::string& sourceIP) {
|
||||
struct addrinfo *result;
|
||||
// on failure to convert to a valid ip
|
||||
if (dataSocket->ConvertHostnameToInternetAddress(sourceIP.c_str(), &result)) {
|
||||
|
@ -979,7 +979,7 @@ public:
|
||||
* Sets the client zmq ip\sa sharedSlsDetector
|
||||
* @param sourceIP client zmq ip
|
||||
*/
|
||||
void setClientStreamingIP(std::string sourceIP);
|
||||
void setClientStreamingIP(const std::string& sourceIP);
|
||||
|
||||
/**
|
||||
* Returns the client zmq ip \sa sharedSlsDetector
|
||||
|
Reference in New Issue
Block a user