diff options
author | Brad Fitzpatrick <bradfitz@android.com> | 2010-10-27 10:23:16 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@android.com> | 2011-01-06 11:09:55 -0800 |
commit | a2a1f3149fb32d95bc81ddfd713d5bba9d6cbc61 (patch) | |
tree | 1e9d4f376979f5ef570c03bac03cfdeab987e8e8 /include | |
parent | f1c2a7352f19cf729f91bf2559fc93ef12c74dca (diff) | |
download | system_core-a2a1f3149fb32d95bc81ddfd713d5bba9d6cbc61.zip system_core-a2a1f3149fb32d95bc81ddfd713d5bba9d6cbc61.tar.gz system_core-a2a1f3149fb32d95bc81ddfd713d5bba9d6cbc61.tar.bz2 |
Let SocketClient users write binary data to clients.
This is a dependency for the DNS proxy CLs.
This CL also adds a new socket for the netd process to inherit which
is owned by the inet group. (so only apps with the INTERNET
permission can use the DNS proxy...)
Change-Id: I8a51924e0ed56c6066f77e6f1b02d39bdadac51e
Diffstat (limited to 'include')
-rw-r--r-- | include/sysutils/SocketClient.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysutils/SocketClient.h b/include/sysutils/SocketClient.h index e7fb177..2fcc331 100644 --- a/include/sysutils/SocketClient.h +++ b/include/sysutils/SocketClient.h @@ -28,8 +28,12 @@ public: uid_t getUid() const { return mUid; } gid_t getGid() const { return mGid; } + // Send null-terminated C strings: int sendMsg(int code, const char *msg, bool addErrno); int sendMsg(const char *msg); + + // Sending binary data: + int sendData(const void *data, int len); }; typedef android::List<SocketClient *> SocketClientCollection; |