mythenDetectorServer compiles in visrtual mode

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@28 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
bergamaschi
2011-02-15 16:20:06 +00:00
parent fbe78acbfe
commit ea62caee31
4 changed files with 41 additions and 24 deletions

View File

@ -68,13 +68,16 @@ int init_detector( int b) {
int decode_function() {
int fnum,n;
int retval;
int retval=FAIL;
#ifdef VERBOSE
printf( "receive data\n");
#endif
n = receiveDataOnly(&fnum,sizeof(fnum));
if (n < 0) {
if (n <= 0) {
printf("ERROR reading from socket %d", n);
return GOODBYE;
return FAIL;
}
#ifdef VERY_VERBOSE
#ifdef VERBOSE
else
printf("size of data received %d\n",n);
#endif