summaryrefslogtreecommitdiffstats
path: root/include/sysutils
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2012-03-08 16:10:06 -0800
committerRobert Greenwalt <rgreenwalt@google.com>2012-03-09 11:55:51 -0800
commit7599bfcf13cf022333338b7a87aaddae69c48d73 (patch)
treeefe6c3ca539af273e8b150d385af7288488ddbe7 /include/sysutils
parentb015977acbb7cea0344ca58f15e762fcbb99a7dc (diff)
downloadsystem_core-7599bfcf13cf022333338b7a87aaddae69c48d73.tar.gz
system_core-7599bfcf13cf022333338b7a87aaddae69c48d73.tar.bz2
system_core-7599bfcf13cf022333338b7a87aaddae69c48d73.zip
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/sysutils')
-rw-r--r--include/sysutils/SocketClient.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/sysutils/SocketClient.h b/include/sysutils/SocketClient.h
index a298f25e4..4d7c4fa70 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);