mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@337 951219d9-93cf-4727-9268-0efd64621fa3
46 lines
764 B
C
46 lines
764 B
C
#ifndef RECEIVER_H
|
|
#define RECEIVER_H
|
|
#include <stdio.h>
|
|
#include "communication_funcs.h"
|
|
|
|
|
|
|
|
|
|
#define GOODBYE -200
|
|
|
|
int sockfd;
|
|
|
|
int function_table();
|
|
int decode_function(int);
|
|
int M_nofunc(int);
|
|
int exit_server(int);
|
|
int exec_command(int);
|
|
|
|
|
|
int lock_receiver(int);
|
|
int set_port(int);
|
|
int get_last_client_ip(int);
|
|
int update_client(int);
|
|
int send_update(int);
|
|
//int set_master(int);
|
|
//int set_synchronization(int);
|
|
|
|
// General purpose functions
|
|
|
|
//int init_receiver();
|
|
int set_file_name(int);
|
|
int set_file_dir(int);
|
|
int set_file_index(int);
|
|
int start_receiver(int);
|
|
int stop_receiver(int);
|
|
int get_receiver_status(int);
|
|
int get_frames_caught(int);
|
|
int get_frame_index(int);
|
|
int reset_frame_index(int);
|
|
int reset_frames_caught(int);
|
|
int read_frame(int);
|
|
|
|
|
|
|
|
#endif
|