+static int __pop_delayed_message(port_list_info_s *port_info)
+{
+ delay_message_info_s *message;
+ int ret;
+
+ if (port_info->delayed_message_list == NULL)
+ return MESSAGE_PORT_ERROR_NONE;
+
+ message = g_list_nth_data(port_info->delayed_message_list, 0);
+ ret = __send_delayed_message(port_info->send_sock_fd, message);
+
+ if (ret != MESSAGE_PORT_ERROR_NONE)
+ return ret;
+
+ port_info->delayed_message_size -= message->size;
+ port_info->delayed_message_list = g_list_remove(port_info->delayed_message_list, message);
+ _LOGI("pop : delayed_message_size (%d), count(%d)",
+ port_info->delayed_message_size,
+ g_list_length(port_info->delayed_message_list));
+
+ __free_delay_message_info(message);
+
+ return MESSAGE_PORT_ERROR_NONE;
+
+}
+