summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunwook Bae <sunwook45.bae@samsung.com>2013-03-18 10:52:37 +0900
committerSunwook Bae <sunwook45.bae@samsung.com>2013-03-18 10:52:37 +0900
commit4ea0c74bea83afc6f07ad50034f26601840f8acd (patch)
tree1991fd24247366efa25cae6f27b2b612a8487fa3
parent364b5f2203c15fc2cbc0e0b1e070828a5a2edcea (diff)
downloadmessage-port-4ea0c74bea83afc6f07ad50034f26601840f8acd.tar.gz
message-port-4ea0c74bea83afc6f07ad50034f26601840f8acd.tar.bz2
message-port-4ea0c74bea83afc6f07ad50034f26601840f8acd.zip
Merge from master
Change-Id: I4491b2f96de3c01031da304f2caff23bf87302ba Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
-rwxr-xr-xinclude/message-port.h8
-rw-r--r--src/MessagePortProxy.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/include/message-port.h b/include/message-port.h
index 65aec02..e663ba7 100755
--- a/include/message-port.h
+++ b/include/message-port.h
@@ -126,7 +126,7 @@ int messageport_check_trusted_remote_port(const char* remote_app_id, const char
*
* @param [in] remote_app_id The ID of the remote application
* @param [in] remote_port the name of the remote message port
- * @param [in] message the message to be passed to the remote application
+ * @param [in] message the message to be passed to the remote application, the recommended message size is under 4KB
* @return 0 on success, otherwise a negative error value.
* @retval #MESSAGEPORT_ERROR_NONE Successful
* @retval #MESSAGEPORT_ERROR_INVALID_PARAMETER Invalid parameter
@@ -154,7 +154,7 @@ int messageport_send_message(const char* remote_app_id, const char* remote_port,
*
* @param [in] remote_app_id The ID of the remote application
* @param [in] remote_port the name of the remote message port
- * @param [in] message the message to be passed to the remote application
+ * @param [in] message the message to be passed to the remote application, the recommended message size is under 4KB
* @return 0 on success, otherwise a negative error value.
* @retval #MESSAGEPORT_ERROR_NONE Successful
* @retval #MESSAGEPORT_ERROR_INVALID_PARAMETER Invalid parameter
@@ -172,7 +172,7 @@ int messageport_send_trusted_message(const char* remote_app_id, const char* remo
* @param [in] id The message port id returned by messageport_register_local_port() or messageport_register_trusted_local_port()
* @param [in] remote_app_id The ID of the remote application
* @param [in] remote_port the name of the remote message port
- * @param [in] message the message to be passed to the remote application
+ * @param [in] message the message to be passed to the remote application, the recommended message size is under 4KB
* @return 0 on success, otherwise a negative error value.
* @retval #MESSAGEPORT_ERROR_NONE Successful
* @retval #MESSAGEPORT_ERROR_INVALID_PARAMETER Invalid parameter
@@ -210,7 +210,7 @@ int messageport_send_bidirectional_message(int id, const char* remote_app_id, co
* @param [in] id The message port id returned by messageport_register_local_port() or messageport_register_trusted_local_port()
* @param [in] remote_app_id The ID of the remote application
* @param [in] remote_port the name of the remote message port
- * @param [in] message the message to be passed to the remote application
+ * @param [in] message the message to be passed to the remote application, the recommended message size is under 4KB
* @return 0 on success, otherwise a negative error value.
* @retval #MESSAGEPORT_ERROR_NONE Successful
* @retval #MESSAGEPORT_ERROR_INVALID_PARAMETER Invalid parameter
diff --git a/src/MessagePortProxy.cpp b/src/MessagePortProxy.cpp
index c203bad..f151bb9 100644
--- a/src/MessagePortProxy.cpp
+++ b/src/MessagePortProxy.cpp
@@ -48,7 +48,7 @@ static const char REMOTE_PORT[] = "REMOTE_PORT";
static const char TRUSTED_REMOTE[] = "TRUSTED_REMOTE";
static const char TRUSTED_MESSAGE[] = "TRUSTED_MESSAGE";
-static const int MAX_MESSAGE_SIZE = 8 * 1024;
+static const int MAX_MESSAGE_SIZE = 16 * 1024;
MessagePortProxy::MessagePortProxy(void)
: __pIpcClient(NULL)