Skip to content

Instantly share code, notes, and snippets.

@StephanOpfer
StephanOpfer / ReceiveTest.cpp
Last active December 29, 2018 05:40
Sending Cap'n Proto over ZeroMQ
#include <discovery_msgs/beacon.capnp.h>
#include <zmq.h>
#include <assert.h>
#include <capnp/message.h>
#include <capnp/serialize-packed.h>
#include <iostream>
/**
#include <zmq.h>
#include <cstring>
#include <iostream>
#include <stdlib.h>
#include <assert.h>
void setup_test_environment (void)
{
#if defined _WIN32
# if defined _MSC_VER