diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2012-03-08 16:10:06 -0800 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2012-03-09 11:55:51 -0800 |
commit | 7599bfcf13cf022333338b7a87aaddae69c48d73 (patch) | |
tree | efe6c3ca539af273e8b150d385af7288488ddbe7 /include | |
parent | b015977acbb7cea0344ca58f15e762fcbb99a7dc (diff) | |
download | system_core-7599bfcf13cf022333338b7a87aaddae69c48d73.zip system_core-7599bfcf13cf022333338b7a87aaddae69c48d73.tar.gz system_core-7599bfcf13cf022333338b7a87aaddae69c48d73.tar.bz2 |
Fix pointer arith.
Sending 3digit code, null, binary-length and data. Current code sends
3digit code, space, null, binary-length, binary-data.
The space should not be sent.
Change-Id: I1df00a3e70805b39b6105966c7f3c613461a6858
Diffstat (limited to 'include')
-rw-r--r-- | include/sysutils/SocketClient.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/sysutils/SocketClient.h b/include/sysutils/SocketClient.h index a298f25..4d7c4fa 100644 --- a/include/sysutils/SocketClient.h +++ b/include/sysutils/SocketClient.h @@ -45,14 +45,12 @@ public: int sendMsg(int code, const char *msg, bool addErrno); int sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum); - // Provides a mechanism to send a response code to the client. The message uses - // the same format as in sendMsg method above. - // Sends the code, a space, and a null character. + // Provides a mechanism to send a response code to the client. + // Sends the code and a null character. int sendCode(int code); - // Provides a mechanism to send binary data to client. The message uses the - // same format as in sendMsg method above. - // Sends the code, a space, and a null character, followed by 4 bytes of + // Provides a mechanism to send binary data to client. + // Sends the code and a null character, followed by 4 bytes of // big-endian length, and the data. int sendBinaryMsg(int code, const void *data, int len); |