Beast send support.

This commit is contained in:
Ian Gulliver
2016-02-17 18:01:39 -08:00
parent 5671f37f8a
commit 44cb3fb122
6 changed files with 106 additions and 12 deletions

9
send.c
View File

@@ -8,9 +8,12 @@
#include <signal.h>
#include "common.h"
#include "send.h"
#include "beast.h"
#include "json.h"
#include "stats.h"
#include "send.h"
struct send {
struct peer peer;
@@ -26,6 +29,10 @@ struct serializer {
serializer serialize;
struct send *send_head;
} serializers[] = {
{
.name = "beast",
.serialize = beast_serialize,
},
{
.name = "json",
.serialize = json_serialize,