diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2017-02-16 21:13:41 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2017-02-16 21:13:41 +0200 |
| commit | 86a38a95ffca9f4eaf7c6e83fd2c7780859ba496 (patch) | |
| tree | 2f627622cd6b4473b127101400049ba211998314 /src/socket.h | |
| parent | ebb556449f4b533bb2e3c52567c498f25a3c7b41 (diff) | |
| download | mqtt-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.h | 5 |
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 |
