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.c | |
| 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.c')
| -rw-r--r-- | src/socket.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c index 1716f19..e161f53 100644 --- a/src/socket.c +++ b/src/socket.c @@ -99,6 +99,16 @@ int SocketDisconnect(int sock) return rc; } +int64_t SocketRecv(int sock, void *buf, size_t len, int flags) +{ + return recv(sock, buf, len, flags); +} + +int64_t SocketSend(int sock, const void *buf, size_t len, int flags) +{ + return send(sock, buf, len, flags); +} + int SocketSendAll(int sock, const char *buf, size_t *len) { size_t total = 0; |
