summaryrefslogtreecommitdiffstats
path: root/include/sysutils
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-10-27 10:23:16 -0700
committerBrad Fitzpatrick <bradfitz@android.com>2010-10-27 10:27:34 -0700
commit8c5669f9f9a228efebf4059fd4ceace5cece578b (patch)
treee9a36458620d4d93884c8e611fd7c39a2cb39567 /include/sysutils
parent7ffa661595df7bc71f1ae2e8cefcd658b0f9bdf5 (diff)
downloadsystem_core-8c5669f9f9a228efebf4059fd4ceace5cece578b.zip
system_core-8c5669f9f9a228efebf4059fd4ceace5cece578b.tar.gz
system_core-8c5669f9f9a228efebf4059fd4ceace5cece578b.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: Ic3475c697913ba85805b4e49801b65e7a1d59289
Diffstat (limited to 'include/sysutils')
-rw-r--r--include/sysutils/SocketClient.h4
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;