aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2017-02-16 21:13:41 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2017-02-16 21:13:41 +0200
commit86a38a95ffca9f4eaf7c6e83fd2c7780859ba496 (patch)
tree2f627622cd6b4473b127101400049ba211998314 /src/socket.h
parentebb556449f4b533bb2e3c52567c498f25a3c7b41 (diff)
downloadmqtt-86a38a95ffca9f4eaf7c6e83fd2c7780859ba496.tar.gz
mqtt-86a38a95ffca9f4eaf7c6e83fd2c7780859ba496.zip
Use functions from socket.c in socketstream.c
Makes the socket includes and platform specific defines centralized in one place.
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h
index 0b9b099..e7b1a80 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -4,6 +4,7 @@
#include "config.h"
#include <stdlib.h>
+#include <stdint.h>
int SocketConnect(const char *host, short port);
@@ -19,4 +20,8 @@ enum
int SocketSelect(int sock, int *events, int timeout);
+int64_t SocketRecv(int sock, void *buf, size_t len, int flags);
+
+int64_t SocketSend(int sock, const void *buf, size_t len, int flags);
+
#endif