mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
changing socket buffer size
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@645 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -221,6 +221,14 @@ enum communicationProtocol{
|
||||
socketDescriptor=-1;
|
||||
return;
|
||||
}
|
||||
|
||||
//increase buffer size if its udp
|
||||
if((communicationProtocol == UDP) && (setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, &SOCKET_BUFFER_SIZE, sizeof(int)) == -1))
|
||||
{
|
||||
cerr << "Cannot set socket receive buffer size" << endl;
|
||||
}
|
||||
|
||||
|
||||
if (getProtocol()==SOCK_STREAM)
|
||||
listen(socketDescriptor, DEFAULT_BACKLOG);
|
||||
|
||||
|
Reference in New Issue
Block a user