aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-22 21:08:08 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-22 21:08:08 +0300
commitf4c66a4c77e5818ca9703f59a80ea92e27ed45c6 (patch)
treee334b3f1c8bdb5c96bd756be4e451836a7762ab4 /src/socket.h
parent9d88d471ac059c93523c00b96ae1cbbc52e07b69 (diff)
abstract messages for easier use
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/socket.h b/src/socket.h
index ecb27ab..1868afc 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -1,8 +1,10 @@
#ifndef SOCKET_H
#define SOCKET_H
-int listener(char *port, void (*on_recv)(char *, int));
+#include "typedef.h"
-int talker(char *port, char *address, void (*on_send)(char *, int *));
+int listener(char *port, void (*on_recv)(message *));
+
+int talker(char *port, char *address, void (*on_send)(message *));
#endif