23#ifndef _das_out_of_band_h_
24#define _das_out_of_band_h_
33typedef enum except_type {
34 DAS_EX_UNKNOWN, DAS_EX_NO_DATA, DAS_EX_SERVER_ERR, DAS_EX_QUERY_ERR
37typedef enum oob_type {OOB_EXCEPT, OOB_COMMENT} oob_t;
40typedef struct out_of_band {
42 void (*clean)(
struct out_of_band* pThis);
57typedef struct stream_exception {
128typedef struct stream_comment{
Utility to assist with encode and decode operations.
int DasErrCode
return code type 0 indicates success, negative integer indicates failure
Definition defs.h:184
DAS_API void OobExcept_set(OobExcept *pThis, das_except_t nType, const char *sMsg)
Set an exception structure to a particular exception.
DAS_API void OutOfBand_clean(OutOfBand *pThis)
Clean up extra memory allocated when an out of band object is initialized.
Buffer class to handle accumulating byte streams.
Definition buffer.h:47
describes an exception that can live in a stream.
Definition oob.h:57
DAS_API DasErrCode OobExcept_encode3(OobExcept *pThis, DasBuf *pBuf)
Serialize an exception into a buffer in das3.0 format.
DAS_API const char * OobExcept_typeStr(const OobExcept *pThis)
Return the das3.0 wire type string for an exception (e.g.
DAS_API DasErrCode OobExcept_encode(OobExcept *pThis, DasBuf *pBuf)
Serialize an exception into a buffer in das2.2 format.
DAS_API void OobExcept_init(OobExcept *pThis)
Initialize an Exception Structure This only needs to be called once, the same structure will be reuse...
DAS_API DasErrCode OobExcept_decode(OobExcept *pThis, DasBuf *str)
Parse text data into a stream exception.
A container for Out-of-Band data.
Definition oob.h:40
DAS_API DasErrCode OutOfBand_decode(DasBuf *pBuf, OutOfBand **ppObjs, int *which)
Factory function to produce out of band objects from general data.