summaryrefslogtreecommitdiff
path: root/tests/message.c
Commit message (Collapse)AuthorAge
* Windows fixes; especially idempotent init/fini.Garrett D'Amore2017-08-11
| | | | | | | This fixes one major problem, which was that if nni_fini() was called once on Windows, it would not be further possible to call nni_init(). While here fixed a few compilation issues.
* Add 32-bit accessors for messages, and tests for them.Garrett D'Amore2017-08-11
|
* Unify the msg API.Garrett D'Amore2017-08-10
This makes the operations that work on headers start with nni_msg_header or nng_msg_header. It also renames _trunc to _chop (same strlen as _trim), and renames prepend to insert. We add a shorthand for clearing message content, and make better use of the endian safe 32-bit accessors too. This also fixes a bug in inserting large headers into messages. A test suite for message handling is included.