From 4ea0c74bea83afc6f07ad50034f26601840f8acd Mon Sep 17 00:00:00 2001 From: Sunwook Bae Date: Mon, 18 Mar 2013 10:52:37 +0900 Subject: [PATCH] Merge from master Change-Id: I4491b2f96de3c01031da304f2caff23bf87302ba Signed-off-by: Sunwook Bae --- include/message-port.h | 8 ++++---- src/MessagePortProxy.cpp | 2 +- 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) -- 2.7.4