summaryrefslogtreecommitdiff
path: root/shared/hook.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/hook.h')
-rw-r--r--shared/hook.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/shared/hook.h b/shared/hook.h
new file mode 100644
index 0000000..8f20565
--- /dev/null
+++ b/shared/hook.h
@@ -0,0 +1,32 @@
+/*
+ * som_net / simple library example (c) by jak1
+ *
+ * som_net / simple library example is licensed under a
+ * Creative Commons Attribution-ShareAlike 4.0 International License.
+ *
+ * You should have received a copy of the license along with this
+ * work. If not, see <http://creativecommons.org/licenses/by-sa/4.0/>.
+ * Footer
+*/
+
+#ifndef SHARED_HOOK_H
+#define SHARED_HOOK_H
+ #include <arpa/inet.h> // inet_addr()
+ #include <strings.h>
+ #include <stdio.h>
+ #include <stdbool.h>
+ #include <netdb.h>
+ #include <netinet/in.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/socket.h>
+ #include <sys/types.h>
+ #include <unistd.h> // read(), write(), close()
+
+ #define MAX_BUFFER_SIZE 80
+ #define PORT 50501
+ #define SA struct sockaddr
+
+ int start_chat(int is_client);
+
+#endif // SHARED_HOOK_H