diff options
author | 2019-05-22 15:15:28 +0300 | |
---|---|---|
committer | 2019-05-22 15:15:28 +0300 | |
commit | f810b277752fc42f3a0e951c7501670a596eb387 (patch) | |
tree | db85bc336878712ce0b65fdad75c51246581804d /src/common/protocol_private.h | |
parent | 3703a6f28d48ac3f2c28d07405fab17a2a402df4 (diff) | |
parent | 27992079c057ea068a355e01365800d77b7ace13 (diff) | |
download | usurpation-f810b277752fc42f3a0e951c7501670a596eb387.tar.gz usurpation-f810b277752fc42f3a0e951c7501670a596eb387.tar.bz2 usurpation-f810b277752fc42f3a0e951c7501670a596eb387.zip |
Merge branch '31-Net-Protocol-Handling'
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/common/protocol_private.h')
-rw-r--r-- | src/common/protocol_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/protocol_private.h b/src/common/protocol_private.h index 7433ff0..d50a314 100644 --- a/src/common/protocol_private.h +++ b/src/common/protocol_private.h @@ -36,6 +36,14 @@ size_t tlv_count(const struct packet_data * const packet_data); /** + * Pushes bytes to outgoing packet and adjusts the offset accordingly. + * + * Returns E_PACKET_OVERFLOW, if no more bytes can fit into the packet. + */ + +int push_bytes(cd_t cd, const char *data, size_t size); + +/** * Parses tlv's from packet data and writes them to a buffer of given size. * * Returns how many tlv's were actually parsed. |