forked from antoinewaugh/cme-sbe-latency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
30 lines (25 loc) · 759 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <iostream>
#include "boost/asio.hpp"
#include "config.h"
#include "ChannelImpl.h"
#include "MarketDataListener.h"
using namespace sp::lltp::cme;
int main(int argc, char *argv[]) {
Handler handler;
boost::asio::io_service io_service;
auto listen_address = boost::asio::ip::address::from_string("0.0.0.0");
auto configs = Config::load("config.xml");
auto channel = Channel<Handler>::make_channel(handler, "310", configs, io_service, listen_address);
channel->Subscribe("ESH8");
io_service.run();
return 0;
}
//int alt() {
//
// sp::lltp::cme::Feed<Handler> feed("0.0.0.0","config.xml");
// feeder.JoinChannel("310");
// feeder.Subscribe("ES7", );
// feeder.Subscribe("");
// feeder.Subscribe("");
// feeder.Subscribe("");
//}