changed the start and stop receiver error messages to be displayed to the client and not jsus recever

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@640 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-07-30 14:49:53 +00:00
parent 500f83f0b4
commit 05f54e996c
8 changed files with 212 additions and 73 deletions

View File

@ -144,9 +144,10 @@ public:
/**
* Starts Receiver - starts to listen for packets
* @param message is the error message if there is an error
* Returns success
*/
int startReceiver();
int startReceiver(char message[]);
/**
* Stops Receiver - stops listening for packets
@ -263,6 +264,15 @@ private:
/** thread writing packets */
pthread_t writing_thread;
/** mutex for locking variable used by different threads */
pthread_mutex_t status_mutex;
/** listening thread running */
int listening_thread_running;
/** writing thread running */
int writing_thread_running;
/** status of receiver */
runStatus status;
@ -383,8 +393,8 @@ public:
/** File Descriptor */
static FILE *sfilefd;
/** if the listening thread is running*/
static int listening_thread_running;
/** if the receiver threads are running*/
static int receiver_threads_running;
/**