summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-07-14 20:42:12 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-07-14 20:42:12 +0200
commit31fd7f1f9b85a447bf9d446e1fc61f3179d79849 (patch)
tree6456225c1c349c30b34a4c2bacbcf8468760e33e
parent5f4d586aca4b5e802e2d18d527ee0b0a4e2f884c (diff)
Minor changes
-rw-r--r--Makefile12
-rwxr-xr-xloggerbin0 -> 15232 bytes
-rw-r--r--src/logger/Makefile10
-rw-r--r--src/logger/main.c13
4 files changed, 32 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9739ea0..391df65 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ include $(CONF)
CC="gcc"
CFLAGS=
-all: publisher client
+all: publisher client logger
publisher:
@echo "---------- Building publisher..."
@@ -15,9 +15,15 @@ client:
CFLAGS=$(CFLAGS) \
$(MAKE) -C src/client/ CC=$(CC) OUT=$(PWD) CONF=$(CONF)
+logger:
+ @echo "---------- Building client..."
+ CFLAGS=$(CFLAGS) \
+ $(MAKE) -C src/logger/ CC=$(CC) OUT=$(PWD) CONF=$(CONF)
+
clean:
- $(MAKE) clean -C src/publisher/ CC=$(CC) OUT=$(PWD)
- $(MAKE) clean -C src/client/ CC=$(CC) OUT=$(PWD)
+ $(MAKE) clean -C src/publisher/
+ $(MAKE) clean -C src/client/
+ $(MAKE) clean -C src/logger/
.PHONY: clean publisher client
diff --git a/logger b/logger
new file mode 100755
index 0000000..1b7bc83
--- /dev/null
+++ b/logger
Binary files differ
diff --git a/src/logger/Makefile b/src/logger/Makefile
new file mode 100644
index 0000000..ad4f0ca
--- /dev/null
+++ b/src/logger/Makefile
@@ -0,0 +1,10 @@
+include $(CONF)
+EXEC=logger
+
+all: main.c
+ $(CC) $^ -o $(OUT)/$(EXEC) $(CFLAGS)
+
+clean:
+ rm -f $(OUT)/$(EXEC)
+
+.PHONY: clean
diff --git a/src/logger/main.c b/src/logger/main.c
new file mode 100644
index 0000000..a9bbb50
--- /dev/null
+++ b/src/logger/main.c
@@ -0,0 +1,13 @@
+// Weather update client
+// Connects SUB socket to tcp://localhost:5556
+// Collects weather updates and finds avg temp in zipcode
+#include <zmq.h>
+#include <assert.h>
+#include <time.h>
+#include <string.h>
+
+int main (int argc, char *argv [])
+{
+
+ return 0;
+} \ No newline at end of file