From 03d47750699c15e8c55ca4610ed5682bcb279185 Mon Sep 17 00:00:00 2001
From: Patrick Simianer
Date: Wed, 13 May 2015 18:03:03 +0200
Subject: atools_net
---
utils/Makefile.am | 8 +-
utils/atools_net.cc | 358 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 364 insertions(+), 2 deletions(-)
create mode 100644 utils/atools_net.cc
diff --git a/utils/Makefile.am b/utils/Makefile.am
index c858ac7e..f057ddbe 100644
--- a/utils/Makefile.am
+++ b/utils/Makefile.am
@@ -1,4 +1,4 @@
-bin_PROGRAMS = reconstruct_weights atools dedup_corpus
+bin_PROGRAMS = reconstruct_weights atools atools_net dedup_corpus
noinst_PROGRAMS = \
ts \
@@ -98,6 +98,10 @@ atools_SOURCES = atools.cc
atools_LDADD = libutils.a
atools_LDFLAGS = $(STATIC_FLAGS)
+atools_net_SOURCES = atools_net.cc nn.hpp
+atools_net_LDADD = libutils.a
+atools_net_LDFLAGS = $(STATIC_FLAGS) /fast_scratch/simianer/lfpe/nanomsg-0.5-beta/lib/libnanomsg.so
+
dedup_corpus_SOURCES = dedup_corpus.cc
dedup_corpus_LDADD = libutils.a
dedup_corpus_LDFLAGS = $(STATIC_FLAGS)
@@ -123,5 +127,5 @@ stringlib_test_LDADD = libutils.a $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) $(BOOST_U
################################################################
# do NOT NOT NOT add any other -I includes NO NO NO NO NO ######
-AM_CPPFLAGS = -DBOOST_TEST_DYN_LINK -W -Wall -I. -I$(top_srcdir) -DTEST_DATA=\"$(top_srcdir)/utils/test_data\"
+AM_CPPFLAGS = -DBOOST_TEST_DYN_LINK -W -Wall -I. -I$(top_srcdir) -DTEST_DATA=\"$(top_srcdir)/utils/test_data\" -I/fast_scratch/simianer/lfpe/nanomsg-0.5-beta/include -I/fast_scratch/simianer/lfpe/cppnanomsg
################################################################
diff --git a/utils/atools_net.cc b/utils/atools_net.cc
new file mode 100644
index 00000000..25f70bbe
--- /dev/null
+++ b/utils/atools_net.cc
@@ -0,0 +1,358 @@
+#include
+#include
+#include
+
+#include
+#include