SysLogException(NID_IO, E_RESOURCE_UNAVAILABLE, "[E_RESOURCE_UNAVAILABLE] The socket buffer is full.");
return E_RESOURCE_UNAVAILABLE;
}
+ else if (errno == EPIPE)
+ {
+ SysLogException(NID_IO, E_INVALID_CONNECTION, "[E_INVALID_CONNECTION] The socket connection is closed.");
+ return E_INVALID_CONNECTION;
+ }
SysLogException(NID_IO, E_SYSTEM, "[E_SYSTEM] Failed to send a request: %d, %s", errno, strerror(errno));
return E_SYSTEM;
SysLogException(NID_IO, E_RESOURCE_UNAVAILABLE, "[E_RESOURCE_UNAVAILABLE] The socket buffer is full.");
return E_RESOURCE_UNAVAILABLE;
}
+ else if (errno == EPIPE)
+ {
+ SysLogException(NID_IO, E_INVALID_CONNECTION, "[E_INVALID_CONNECTION] The socket connection is closed.");
+ return E_INVALID_CONNECTION;
+ }
SysLogException(NID_IO, E_SYSTEM, "[E_SYSTEM] Failed to send a request: %d, %s", errno, strerror(errno));
return E_SYSTEM;
* @param[in] pListener Set if the client want to handle a message from the IPC server.
* @c null, otherwise.
* @exception E_SUCCESS The method was successful.
- * @exception E_OBJ_NOT_FOUND The IPC server was not found.
* @exception E_OUT_OF_MEMORY Insufficient memory.
* @exception E_SYSTEM A system error occurred.
*/
* @return An error code
* @param[in] message The message to send
* @exception E_SUCCESS The method was successful.
- * @exception E_INVALID_STATE The instance is in an invalid state.
* @exception E_RESOURCE_UNAVAILABLE The socket buffer is full.
+ * @exception E_INVALID_CONNECTION The socket connection is closed.
* @exception E_OUT_OF_MEMORY Insufficient memory.
* @exception E_SYSTEM A system error occurred.
*