summaryrefslogtreecommitdiff
path: root/raw_os.h
diff options
context:
space:
mode:
Diffstat (limited to 'raw_os.h')
-rw-r--r--raw_os.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/raw_os.h b/raw_os.h
index f5a17c4..6d74b6d 100644
--- a/raw_os.h
+++ b/raw_os.h
@@ -17,6 +17,8 @@
#ifndef RAW_OS_H_
#define RAW_OS_H_
+#include <sys/socket.h>
+#include <sys/types.h>
#include <time.h>
#include "android-base/macros.h"
@@ -36,6 +38,9 @@ class RawOs {
virtual int ClockGettime(clockid_t clock_id,
NONNULL struct timespec* tspec) const;
+ // See recv().
+ virtual ssize_t Recv(int sockfd, void* buf, size_t buflen, int flags);
+
// See write().
virtual ssize_t Write(int fd, const void* buf, size_t buflen);