das2C
das core C utilities (v3)
Loading...
Searching...
No Matches
send.h
Go to the documentation of this file.
1/* Copyright (C) 2015-2026 Chris Piker <chris-piker@uiowa.edu>
2 *
3 * This file is part of das2C, the Core Das C Library.
4 *
5 * Das2C is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License version 2.1 as published
7 * by the Free Software Foundation.
8 *
9 * Das2C is distributed in the hope that it will be useful, but WITHOUT ANY
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * version 2.1 along with das2C; if not, see <http://www.gnu.org/licenses/>.
16 */
17
33#ifndef _das2_outbuf_H_
34#define _das2_outbuf_H_
35
36#include <stdarg.h>
37#include <stdlib.h>
38
39#include <das3/das1.h> /* das_swap_float, and defs.h for HOST_IS_LSB_FIRST */
40#include <das3/oob.h> /* das_except_t */
41
49DAS_API void das_send_stub(int nDasVer);
50
65DAS_API void das_send_except(int nDasVer, das_except_t nType, const char* sMsg);
66
70DAS_API int das_send_nodata(int nDasVer, const char* sFmt, ...);
71
75DAS_API int das_send_queryerr(int nDasVer, const char* sFmt, ...);
76
77DAS_API int das_vsend_queryerr(int nDasVer, const char* sFmt, va_list argp);
78
82DAS_API int das_send_srverr(int nDasVer, const char* sFmt, ...);
83
85DAS_API void das_send_msg(int nDasVer, const char* source, const char* sFmt, ...);
86
105void das_send_progbeg(int nDasVer, const char* sSrc, double fBeg, double fEnd);
106
119void das_send_progup(int nDasVer, const char* sSrc, double fCurrent);
120
124#define das_msb_float(x) swapFloatIfHostLE(x)
125
126#endif /* _das2_outbuf_H_ */
Das 1 Compatibility Utilities.
Defines the "Out of Band" objects in a stream.
void das_send_progbeg(int nDasVer, const char *sSrc, double fBeg, double fEnd)
Start a progress bar on the recieving client.
DAS_API int das_send_srverr(int nDasVer, const char *sFmt,...)
Output a server problem message (i.e.
void das_send_progup(int nDasVer, const char *sSrc, double fCurrent)
Update a progress bar on the receiving client.
DAS_API int das_send_nodata(int nDasVer, const char *sFmt,...)
Output a no data in interval message.
DAS_API void das_send_except(int nDasVer, das_except_t nType, const char *sMsg)
Output an exception of any type.
DAS_API void das_send_msg(int nDasVer, const char *source, const char *sFmt,...)
Output a log status message (i.e.
DAS_API int das_send_queryerr(int nDasVer, const char *sFmt,...)
Output a "user-messed up" message when receiving a badly formed query.
DAS_API void das_send_stub(int nDasVer)
Send a stub stream header.