aboutsummaryrefslogtreecommitdiffstats
path: root/client.h
diff options
context:
space:
mode:
authorTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-12 17:06:07 -0600
committerTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-12 17:06:07 -0600
commit64f825db92ce31102b29ac96fd382ac3643fb6ae (patch)
tree954437be6fe647f96305aadae48d4eb9e8bf9606 /client.h
parentAdd pthread library (diff)
downloadwg-dynamic-64f825db92ce31102b29ac96fd382ac3643fb6ae.tar.xz
wg-dynamic-64f825db92ce31102b29ac96fd382ac3643fb6ae.zip
Write client connect_to_server
Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>
Diffstat (limited to 'client.h')
-rw-r--r--client.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/client.h b/client.h
index 996cb58..8dd35db 100644
--- a/client.h
+++ b/client.h
@@ -6,6 +6,10 @@
#ifndef CLIENT_H
#define CLIENT_H
-int connect_to_server(const char interface[]);
+#include <stdbool.h>
+
+bool is_server_in_allowed_ips(const char interface[]);
+int connect_to_server();
+void close_connection(int sock);
#endif