mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 07:20:01 +02:00
somewhere
This commit is contained in:
parent
8c45f94496
commit
ad64df01c7
@ -170,12 +170,6 @@ class UDPStandardImplementation: private virtual slsReceiverDefs, public UDPBase
|
|||||||
*/
|
*/
|
||||||
void closeFiles();
|
void closeFiles();
|
||||||
|
|
||||||
/**
|
|
||||||
* Set streaming port and restart sockets if streaming was enabled
|
|
||||||
* @param i streaming port
|
|
||||||
*/
|
|
||||||
void setStreamingPort(const uint32_t i);
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -160,6 +160,20 @@ public:
|
|||||||
|
|
||||||
void* GetsocketDescriptor () { return socketDescriptor; };
|
void* GetsocketDescriptor () { return socketDescriptor; };
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Connect client socket to server socket
|
||||||
|
* @returns 1 for fail, 0 for success
|
||||||
|
*/
|
||||||
|
int Connect() {
|
||||||
|
if (zmq_connect(socketDescriptor, serverAddress) < 0) {
|
||||||
|
PrintError ();
|
||||||
|
Close ();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unbinds the Socket
|
* Unbinds the Socket
|
||||||
*/
|
*/
|
||||||
|
@ -571,17 +571,6 @@ void UDPStandardImplementation::closeFiles() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void UDPStandardImplementation::setStreamingPort(const uint32_t i) {
|
|
||||||
streamingPort = i;
|
|
||||||
|
|
||||||
FILE_LOG(logINFO) << "Streaming Port: " << streamingPort;
|
|
||||||
if (dataStreamEnable) {
|
|
||||||
setDataStreamEnable(false);
|
|
||||||
setDataStreamEnable(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void UDPStandardImplementation::SetLocalNetworkParameters() {
|
void UDPStandardImplementation::SetLocalNetworkParameters() {
|
||||||
//to increase socket receiver buffer size and max length of input queue by changing kernel settings
|
//to increase socket receiver buffer size and max length of input queue by changing kernel settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user