A
Animesh
Hi All,
I don't know whethher this is possible or not. This is the result of a
bad design problem.
Here I go; I have a structure like this:
typedef struct _s_index_entry {
char *doc_id;
double s_id;
} S_INDEX_ENTRY;
And I have mappings of a keyword and a corresponding array of
S_INDEX_ENTRYs described above or:
S_INDEX_ENTRY **sie; which is the case. The length of the double
pointer is also not fixed.
I need to save it to a BerkeleyDB or send it to a client TCP socket. So
I need to marshall all the data and do the needful. I have done
marshalling on a structure but am completely at a loss for marshalling
this array of structures. Is it possible to do this through C.
Also is it possible to marshal a quee of structures which seems to be
another way to get my data accross. Save the array of structures as a
queue of structures and do the code, but that also seems similar.
Thanks in Advance,
-Animesh
I don't know whethher this is possible or not. This is the result of a
bad design problem.
Here I go; I have a structure like this:
typedef struct _s_index_entry {
char *doc_id;
double s_id;
} S_INDEX_ENTRY;
And I have mappings of a keyword and a corresponding array of
S_INDEX_ENTRYs described above or:
S_INDEX_ENTRY **sie; which is the case. The length of the double
pointer is also not fixed.
I need to save it to a BerkeleyDB or send it to a client TCP socket. So
I need to marshall all the data and do the needful. I have done
marshalling on a structure but am completely at a loss for marshalling
this array of structures. Is it possible to do this through C.
Also is it possible to marshal a quee of structures which seems to be
another way to get my data accross. Save the array of structures as a
queue of structures and do the code, but that also seems similar.
Thanks in Advance,
-Animesh