Add error type 93/14093/1 accepted/tizen/generic accepted/tizen/mobile accepted/tizen_generic accepted/tizen/generic/20140106.140329 accepted/tizen/generic/20140108.092110 accepted/tizen/ivi/20131227.204753 accepted/tizen/mobile/20131227.211641 submit/tizen/20131227.064716 submit/tizen/20140108.000628 submit/tizen/20140108.000659 submit/tizen/20140108.002310
authorHyunbin Lee <hyunbin.lee@samsung.com>
Tue, 19 Nov 2013 05:41:52 +0000 (14:41 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Mon, 23 Dec 2013 06:57:05 +0000 (15:57 +0900)
Change-Id: I92f74c1c9ef5e4492bca78144214989fac16ec1f
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
include/message-port.h
src/MessagePortProxy.cpp

index 6b194f9..aa10b99 100755 (executable)
@@ -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;
 
 
index 0ff878d..0f40e53 100644 (file)
@@ -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);