diff options
author | Hyunbin Lee <hyunbin.lee@samsung.com> | 2013-11-19 14:41:52 +0900 |
---|---|---|
committer | Hyunbin Lee <hyunbin.lee@samsung.com> | 2013-12-23 15:57:05 +0900 |
commit | 4ee5f77116ba97e8588a7c4c329ee427e9147068 (patch) | |
tree | 36fb1a3cf2074f23a394c65a8c378acb4fd4e2b2 | |
parent | 75a78478a3490e04189649195c04f837316cf288 (diff) | |
download | message-port-4ee5f77116ba97e8588a7c4c329ee427e9147068.tar.gz message-port-4ee5f77116ba97e8588a7c4c329ee427e9147068.tar.bz2 message-port-4ee5f77116ba97e8588a7c4c329ee427e9147068.zip |
Add error typesubmit/tizen/20140108.002310submit/tizen/20140108.000659submit/tizen/20140108.000628submit/tizen/20131227.064716accepted/tizen/mobile/20131227.211641accepted/tizen/ivi/20131227.204753accepted/tizen/generic/20140108.092110accepted/tizen/generic/20140106.140329accepted/tizen_genericaccepted/tizen/mobileaccepted/tizen/generic
Change-Id: I92f74c1c9ef5e4492bca78144214989fac16ec1f
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
-rwxr-xr-x | include/message-port.h | 1 | ||||
-rw-r--r-- | src/MessagePortProxy.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/message-port.h b/include/message-port.h index 6b194f9..aa10b99 100755 --- a/include/message-port.h +++ b/include/message-port.h @@ -45,6 +45,7 @@ typedef enum MESSAGEPORT_ERROR_MESSAGEPORT_NOT_FOUND = -4, /**< The message port of the remote application is not found */ MESSAGEPORT_ERROR_CERTIFICATE_NOT_MATCH = -5, /**< The remote application is not signed with the same certificate */ MESSAGEPORT_ERROR_MAX_EXCEEDED = -6, /**< The size of message has exceeded the maximum limit */ + MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE = -7, /**< Resource temporarily unavailable */ } messageport_error_e; diff --git a/src/MessagePortProxy.cpp b/src/MessagePortProxy.cpp index 0ff878d..0f40e53 100644 --- a/src/MessagePortProxy.cpp +++ b/src/MessagePortProxy.cpp @@ -411,6 +411,12 @@ MessagePortProxy::SendMessageInternal(const BundleBuffer& metadata, const Bundle return MESSAGEPORT_ERROR_CERTIFICATE_NOT_MATCH; } + else if (return_value == MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE) + { + _LOGE("The socket receiver buffer of remote port is temporarily full."); + + return MESSAGEPORT_ERROR_RESOURCE_UNAVAILABLE; + } else { _LOGE("Failed to check the remote messge port: %d.", return_value); |