areaDetector
3-5-0
EPICS areaDetector framework
|
#include "restApi.h"
#include <stdexcept>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <frozen.h>
#include <epicsStdio.h>
#include <epicsThread.h>
#include <epicsTime.h>
#include <fcntl.h>
Classes | |
struct | socket |
struct | request |
struct | response |
Macros | |
#define | API_VERSION "1.6.0" |
#define | EOL "\r\n" |
#define | EOL_LEN 2 |
#define | EOH EOL EOL |
#define | EOH_LEN (EOL_LEN*2) |
#define | ID_STR "$id" |
#define | ID_LEN 3 |
#define | DATA_NATIVE "application/json; charset=utf-8" |
#define | DATA_TIFF "application/tiff" |
#define | DATA_HDF5 "application/hdf5" |
#define | DATA_HTML "text/html" |
#define | MAX_HTTP_RETRIES 1 |
#define | MAX_MESSAGE_SIZE 512 |
#define | MAX_BUF_SIZE 256 |
#define | MAX_JSON_TOKENS 100 |
#define | DEFAULT_TIMEOUT_INIT 240 |
#define | DEFAULT_TIMEOUT_ARM 120 |
#define | DEFAULT_TIMEOUT_CONNECT 1 |
#define | ERR_PREFIX "RestApi" |
#define | ERR(msg) fprintf(stderr, ERR_PREFIX "::%s: %s\n", functionName, msg) |
#define | ERR_ARGS(fmt, ...) |
#define | REQUEST_GET |
#define | REQUEST_GET_FILE |
#define | REQUEST_PUT |
#define | REQUEST_HEAD |
#define | REQUEST_DELETE |
Typedefs | |
typedef struct socket | socket_t |
typedef struct request | request_t |
typedef struct response | response_t |
#define API_VERSION "1.6.0" |
#define DATA_HDF5 "application/hdf5" |
#define DATA_HTML "text/html" |
#define DATA_NATIVE "application/json; charset=utf-8" |
#define DATA_TIFF "application/tiff" |
#define DEFAULT_TIMEOUT_ARM 120 |
#define DEFAULT_TIMEOUT_CONNECT 1 |
#define DEFAULT_TIMEOUT_INIT 240 |
#define EOH_LEN (EOL_LEN*2) |
#define EOL "\r\n" |
#define EOL_LEN 2 |
#define ERR | ( | msg | ) | fprintf(stderr, ERR_PREFIX "::%s: %s\n", functionName, msg) |
#define ERR_ARGS | ( | fmt, | |
... | |||
) |
#define ERR_PREFIX "RestApi" |
#define ID_LEN 3 |
#define ID_STR "$id" |
#define MAX_BUF_SIZE 256 |
#define MAX_HTTP_RETRIES 1 |
#define MAX_JSON_TOKENS 100 |
#define MAX_MESSAGE_SIZE 512 |
#define REQUEST_DELETE |
#define REQUEST_GET_FILE |
#define REQUEST_HEAD |
#define REQUEST_PUT |
typedef struct response response_t |