1 #ifndef ASPERA_FASP_STREAM_H
2 #define ASPERA_FASP_STREAM_H
8 #ifdef FASPSTREAM_CPP_EXPORTS
9 #define FASPSTREAM_C_API __declspec(dllexport)
11 #define FASPSTREAM_C_API __declspec(dllimport)
15 #define FASPSTREAM_C_API
FASPSTREAM_C_API int fasp_stream_start_listening(fasp_stream_t *ctx, const char *port)
FASPSTREAM_C_API int fasp_stream_close(fasp_stream_t *ctx)
FASPSTREAM_C_API int fasp_stream_connect(fasp_stream_t *ctx, const char *host, const char *port)
FASPSTREAM_C_API size_t fasp_stream_write(fasp_stream_t *ctx, const char *buf, size_t len)
FASPSTREAM_C_API int fasp_stream_opts_set(fasp_stream_t *ctx, const char *option, const char *value)
#define FASPSTREAM_C_API
Definition: fasp_stream.h:15
FASPSTREAM_C_API void fasp_stream_set_path(fasp_stream_t *ctx, const char *path)
FASPSTREAM_C_API int fasp_stream_opts_list(const char **options, const char **data_types)
FASPSTREAM_C_API int fasp_stream_destroy(fasp_stream_t *ctx)
FASPSTREAM_C_API int fasp_stream_eof(fasp_stream_t *ctx)
struct fasp_stream fasp_stream_t
Definition: fasp_stream.h:23
FASPSTREAM_C_API fasp_stream_t * fasp_stream_create()
FASPSTREAM_C_API size_t fasp_stream_read(fasp_stream_t *ctx, char *buf, size_t len)
FASPSTREAM_C_API const char * fasp_stream_opts_get(fasp_stream_t *ctx, const char *option)