]> git.lizzy.rs Git - dragonnet.git/blob - send.h
Add buffer based (de)serialization
[dragonnet.git] / send.h
1 #ifndef _DRAGONNET_SEND_H_
2 #define _DRAGONNET_SEND_H_
3
4 #include <stdbool.h>
5
6 #include <dragonnet/peer.h>
7
8 void dragonnet_send_raw(DragonnetPeer *p, bool submit, const void *buf, size_t n);
9 void dragonnet_write_raw(u8 **buf, size_t *n, const void *data, size_t len);
10
11 #endif