diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-02 17:35:49 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-02 17:35:49 -0800 |
| commit | 13e380343c0eec96a723e7407d59fb7f5d20aba0 (patch) | |
| tree | f50fdea3117c64d460fc82ce7978b6b4253250cf /src/core/list.h | |
| parent | ec2b1275153487fda661942d9b98aab2567b612e (diff) | |
| download | nng-13e380343c0eec96a723e7407d59fb7f5d20aba0.tar.gz nng-13e380343c0eec96a723e7407d59fb7f5d20aba0.tar.bz2 nng-13e380343c0eec96a723e7407d59fb7f5d20aba0.zip | |
Fixes to enable REQ/REP to operate.
This uncovered a few problems - inproc was not moving the headers
to the body on transmit, and the message chunk allocator had a serious
bug leading to memory corruption. I've also added a message dumper,
which turns out to be incredibly useful during debugging.
Diffstat (limited to 'src/core/list.h')
| -rw-r--r-- | src/core/list.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/list.h b/src/core/list.h index 9d95a527..a6540f5e 100644 --- a/src/core/list.h +++ b/src/core/list.h @@ -32,12 +32,12 @@ extern void nni_list_init_offset(nni_list *list, size_t offset); #define NNI_LIST_NODE_INIT(node) \ { (node)->ln_prev = (node)->ln_next = 0; } -extern void *nni_list_first(nni_list *); -extern void *nni_list_last(nni_list *); +extern void *nni_list_first(const nni_list *); +extern void *nni_list_last(const nni_list *); extern void nni_list_append(nni_list *, void *); extern void nni_list_prepend(nni_list *, void *); -extern void *nni_list_next(nni_list *, void *); -extern void *nni_list_prev(nni_list *, void *); +extern void *nni_list_next(const nni_list *, void *); +extern void *nni_list_prev(const nni_list *, void *); extern void nni_list_remove(nni_list *, void *); #define NNI_LIST_FOREACH(l, it) \ |
