1#ifndef __JBXL_PROTOCOL_H_
2#define __JBXL_PROTOCOL_H_
31#define HDLIST_FIRST_LINE_KEY "FIRST_LINE"
32#define HDLIST_CONTENTS_KEY "CONTENTS_DATA"
33#define HDLIST_CONTINUE "HEADER_CONTINUE"
34#define HDLIST_END_KEY "HEADER_END"
50#define create_protocol_header(p, k, v) add_tList_node_bystr((p), 0, 0, (char*)(k), (char*)(v), NULL, 0)
51#define add_protocol_header(p, k, v) add_tList_node_bystr((p), 0, 0, (char*)(k), (char*)(v), NULL, 0)
52#define create_protocol_header_Buffer(p, k, v) add_tList_node_byBuffer((p), 0, 0, (k), (v), NULL, 0)
53#define add_protocol_header_Buffer(p, k, v) add_tList_node_byBuffer((p), 0, 0, (k), (v), NULL, 0)
54#define delete_protocol_header(p, k, n) del_tList_key((p), (k), (n))
62#define get_protocol_header(l, k, n) search_protocol_header((l), (k), (n))
63#define get_protocol_header_item(l, k, n, d, m) search_protocol_header_item((l), (k), (n), (d), (m))
64#define get_protocol_header_value(l, k, d, n) search_protocol_header_value((l), (k), (d), (n))
65#define get_protocol_header_partvalue(l, k, d, n) search_protocol_header_partvalue((l), (k), (d), (n))
71#define set_protocol_record_item(l, d, m, v) set_item_tList_node((l), (d), (m), (v))
72#define replace_protocol_record_item(l, d, m, s, v) replace_item_tList_node((l), (d), (m), (s), (v))
90#define replace_protocol_header(list, key, no, srcval, value) replace_value_tList((list), (key), (no), (srcval), (value))
107#define replace_protocol_header_item(list, key, no, deli, nm, srcval, value) replace_item_tList((list), (key), (no), (deli), (nm), (srcval), (value))
123#define set_protocol_header_item(list, key, no, deli, nm, value) set_item_tList((list), (key), (no), (deli), (nm), (value))
Buffer search_protocol_header_item(tList *list, char *key, int no, char deli, int nm)
Buffer restore_protocol_contents(tList *pp)
tList * get_protocol_header_list_file(char *fname, char deli, int fstline, int rcntnt)
Buffer search_protocol_header(tList *list, char *key, int no)
int set_protocol_header(tList *list, char *key, char *value, int no, int mode)
int search_crlfcrlf(char *mesg)
tList * get_protocol_header_list(Buffer buf, char deli, int fstline, int rcntnt)
int is_header_continue(tList *lp)
void print_protocol_header(tList *lp, int content)
Buffer search_protocol_header_value(tList *list, char *key, char *data, int no)
Buffer search_protocol_header_partvalue(tList *list, char *key, char *data, int no)
void set_protocol_contents(tList *pp, Buffer cnt)
tList * find_protocol_end(tList *lp)
tList * get_protocol_header_list_seq(tList *list, Buffer buf, char deli, int fstline, int rcntnt)
Buffer restore_protocol_header(tList *pp, char *deli, int mode, int *hdsz)