]>
git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/contrib/zeromq/test-sender.cpp
3 #include <thrift/protocol/TBinaryProtocol.h>
6 #include "TZmqClient.h"
9 using apache::thrift::std::shared_ptr
;
10 using apache::thrift::transport::TZmqClient
;
11 using apache::thrift::protocol::TBinaryProtocol
;
13 int main(int argc
, char** argv
) {
14 const char* endpoint
= "epgm://eth0;239.192.1.1:5555";
15 int socktype
= ZMQ_PUB
;
21 zmq::context_t
ctx(1);
22 shared_ptr
<TZmqClient
> transport(new TZmqClient(ctx
, endpoint
, socktype
));
23 shared_ptr
<TBinaryProtocol
> protocol(new TBinaryProtocol(transport
));
24 StorageClient
client(protocol
);