5 #include <epicsMutex.h> 8 #define DEFAULT_TIMEOUT 20 // seconds 10 #define MAX_CHANGED_PARAMS 32 11 #define MAX_PARAM_NAME 64 44 struct sockaddr_in mAddress;
49 int setNonBlock (
socket_t *s,
bool nonBlock);
53 int getBlob (
sys_t sys,
const char *
name,
char **
buf,
size_t *bufSize,
const char *accept);
58 static int buildMasterName (
const char *pattern,
int seqId,
char *
buf,
size_t bufSize);
59 static int buildDataName (
int n,
const char *pattern,
int seqId,
char *
buf,
size_t bufSize);
67 int arm (
int *sequenceId);
68 int trigger (
int timeout,
double exposure = 0.0);
75 int getFileSize (
const char *filename,
size_t *size);
77 int getFile (
const char *filename,
char **
buf,
size_t *bufSize);
static int buildMasterName(const char *pattern, int seqId, char *buf, size_t bufSize)
Definition: restApi.cpp:222
int deleteFile(const char *filename)
Definition: restApi.cpp:445
int cancel(void)
Definition: restApi.cpp:342
int put(sys_t sys, std::string const ¶m, std::string const &value="", std::string *reply=NULL, int timeout=DEFAULT_TIMEOUT)
Definition: restApi.cpp:657
static int buildDataName(int n, const char *pattern, int seqId, char *buf, size_t bufSize)
Definition: restApi.cpp:238
int waitFile(const char *filename, double timeout=DEFAULT_TIMEOUT)
Definition: restApi.cpp:395
int statusUpdate(void)
Definition: restApi.cpp:357
name
Definition: makeDbAndEdl.py:232
int abort(void)
Definition: restApi.cpp:347
list value
Definition: makeDbAndEdl.py:234
Definition: restApi.cpp:78
int getFile(const char *filename, char **buf, size_t *bufSize)
Definition: restApi.cpp:440
#define NULL
Definition: ADCameralink.cpp:47
static const char * sysStr[SSCount]
Definition: restApi.h:56
int wait(void)
Definition: restApi.cpp:352
int initialize(void)
Definition: restApi.cpp:276
Definition: restApi.cpp:92
int disarm(void)
Definition: restApi.cpp:337
int get(sys_t sys, std::string const ¶m, std::string &value, int timeout=DEFAULT_TIMEOUT)
Definition: restApi.cpp:705
int getFileSize(const char *filename, size_t *size)
Definition: restApi.cpp:362
int getMonitorImage(char **buf, size_t *bufSize, size_t timeout=500)
Definition: restApi.cpp:476
#define DEFAULT_TIMEOUT
Definition: restApi.h:8
int arm(int *sequenceId)
Definition: restApi.cpp:281
RestAPI(std::string const &hostname, int port=80, size_t numSockets=5)
Definition: restApi.cpp:256
Definition: restApi.cpp:86
int trigger(int timeout, double exposure=0.0)
Definition: restApi.cpp:312
Definition: NDFileHDF5Layout.h:42
unsigned char * buf
Definition: udp_client_pixirad_single.cpp:70
sys_t
Definition: restApi.h:14