aboutsummaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c10
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;