std::make_pair(UP_FUNC_EXIT, boost::bind(&tcp_session::up_thread_exit, this, _1));
// set up_thread_message_down_thread_function_map
- std::pair<DOWN_THREAD_FUNC_TYPE_TAG , tcp_session_func > add_up_thread_message_func;
+ std::pair<DOWN_THREAD_FUNC_TYPE_TAG, tcp_session_func> add_up_thread_message_func;
add_up_thread_message_func.first = DOWN_FUNC_CLIENT_DISCONNECT_EVENT;
add_up_thread_message_func.second = boost::bind(&tcp_session::down_thread_client_disconnect_event, this, _1);
up_thread_message_down_thread_function_map.insert(add_up_thread_message_func);
down_thread_function_array[DOWN_FUNC_EXIT] = std::make_pair(DOWN_FUNC_EXIT, boost::bind(&tcp_session::down_thread_exit, this, _1));
// set down_thread_message_up_thread_function_map
- std::pair<UP_THREAD_FUNC_TYPE_TAG , tcp_session_func > add_down_thread_message_func;
+ std::pair<UP_THREAD_FUNC_TYPE_TAG, tcp_session_func> add_down_thread_message_func;
add_down_thread_message_func.first = UP_FUNC_CLIENT_DISCONNECT_EVENT;
add_down_thread_message_func.second = boost::bind(&tcp_session::up_thread_client_disconnect_event, this, _1);
down_thread_message_up_thread_function_map.insert(add_down_thread_message_func);
down_thread_message_up_thread_function_map.insert(add_down_thread_message_func);
// set virtual_service_message_up_thread_function_map
- std::pair<TCP_VIRTUAL_SERVICE_MESSAGE_TAG , tcp_session_func > add_up_thread_vs_message_func;
+ std::pair<TCP_VIRTUAL_SERVICE_MESSAGE_TAG, tcp_session_func> add_up_thread_vs_message_func;
add_up_thread_vs_message_func.first = SORRY_STATE_ENABLE;
add_up_thread_vs_message_func.second = boost::bind(&tcp_session::up_thread_sorry_enable_event, this, _1);
virtual_service_message_up_thread_function_map.insert(add_up_thread_vs_message_func);
virtual_service_message_up_thread_function_map.insert(add_up_thread_vs_message_func);
// set virtual_service_message_down_thread_function_map
- std::pair<TCP_VIRTUAL_SERVICE_MESSAGE_TAG , tcp_session_func > add_down_thread_vs_message_func;
+ std::pair<TCP_VIRTUAL_SERVICE_MESSAGE_TAG, tcp_session_func> add_down_thread_vs_message_func;
add_down_thread_vs_message_func.first = SORRY_STATE_ENABLE;
add_down_thread_vs_message_func.second = boost::bind(&tcp_session::down_thread_sorry_enable_event, this, _1);
virtual_service_message_down_thread_function_map.insert(add_down_thread_vs_message_func);
//ERROR
ssl_handshake_timer->cancel();
func_tag = UP_FUNC_CLIENT_DISCONNECT;
- Logger::putLogError(LOG_CAT_L7VSD_SESSION, 113, "ssl socket handshaking failed" , __FILE__, __LINE__);
+ Logger::putLogError(LOG_CAT_L7VSD_SESSION, 113, "ssl socket handshaking failed", __FILE__, __LINE__);
//----Debug log----------------------------------------------------------------------
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
std::stringstream buf;
func_tag = UP_FUNC_REALSERVER_SEND;
} else {
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_realserver_send(up_thread_id);
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
func_tag = func_type->second;
}
} else {
}
-// XXX ---- koko made yonda ----
-
//! up thread raise module event of handle_realserver_select
//! @param[in] process_type is prosecess type
void tcp_session::up_thread_realserver_get_destination_event(const TCP_PROCESS_TYPE_TAG process_type)
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_realserver_select(up_thread_id, server_endpoint);
up_thread_data_dest_side.set_endpoint(server_endpoint);
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
- up_thread_function_pair func = up_thread_function_array[func_type->second];
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
+ up_thread_function_pair func = up_thread_function_array[func_type->second];
if (module_event == protocol_module_base::SORRYSERVER_SELECT) {
// protocol module sorry mode change
- tcp_thread_message *down_msg = new tcp_thread_message;
+ tcp_thread_message *down_msg = new tcp_thread_message;
- std::map< DOWN_THREAD_FUNC_TYPE_TAG, tcp_session_func >::iterator
- down_func = up_thread_message_down_thread_function_map.find(
- DOWN_FUNC_SORRY_ENABLE_EVENT);
+ std::map<DOWN_THREAD_FUNC_TYPE_TAG, tcp_session_func>::iterator
+ down_func = up_thread_message_down_thread_function_map.find(DOWN_FUNC_SORRY_ENABLE_EVENT);
down_msg->message = down_func->second;
while (!down_thread_message_que.push(down_msg)) {}
}
boost::asio::ip::tcp::endpoint server_endpoint = up_thread_data_dest_side.get_endpoint();
- std::map<endpoint, tcp_socket_ptr>::iterator get_socket = up_thread_send_realserver_socket_map.find(server_endpoint);
- std::map<endpoint, tcp_socket_ptr>::iterator map_end = up_thread_send_realserver_socket_map.end();
+ std::map<endpoint, tcp_socket_ptr>::iterator get_socket = up_thread_send_realserver_socket_map.find(server_endpoint);
+ std::map<endpoint, tcp_socket_ptr>::iterator map_end = up_thread_send_realserver_socket_map.end();
UP_THREAD_FUNC_TYPE_TAG func_tag;
if (get_socket != map_end) {
func_tag = UP_FUNC_REALSERVER_CONNECT_EVENT;
if (unlikely(!new_socket->set_non_blocking_mode(ec))) {
// socket set nonblocking mode error
std::stringstream buf;
- buf << "Thread ID[";
- buf << boost::this_thread::get_id();
- buf << "] set non blocking socket error:";
- buf << ec.message();
+ buf << "Thread ID[" << boost::this_thread::get_id() << "] ";
+ buf << "set non blocking socket error: " << ec.message();
Logger::putLogError(LOG_CAT_L7VSD_SESSION, 34, buf.str(), __FILE__, __LINE__);
up_thread_exit(process_type);
return;
if (unlikely(ec)) {
// socket set nonblocking mode error
std::stringstream buf;
- buf << "Thread ID[";
- buf << boost::this_thread::get_id();
- buf << "] realserver socket recieve buffer size error: ";
- buf << ec.message();
+ buf << "Thread ID[" << boost::this_thread::get_id() << "] ";
+ buf << "realserver socket recieve buffer size error: " << ec.message();
Logger::putLogError(LOG_CAT_L7VSD_SESSION, 35, buf.str(), __FILE__, __LINE__);
up_thread_exit(process_type);
return;
if (unlikely(ec)) {
// socket set nonblocking mode error
std::stringstream buf;
- buf << "Thread ID[";
- buf << boost::this_thread::get_id();
- buf << "] realserver socket send buffer size error: ";
- buf << ec.message();
+ buf << "Thread ID[" << boost::this_thread::get_id() << "] ";
+ buf << "realserver socket send buffer size error: " << ec.message();
Logger::putLogError(LOG_CAT_L7VSD_SESSION, 36, buf.str(), __FILE__, __LINE__);
up_thread_exit(process_type);
return;
func_tag = UP_FUNC_REALSERVER_CONNECT_FAIL_EVENT;
//connect socket error
std::stringstream buf;
- buf << "Thread ID[";
- buf << boost::this_thread::get_id();
- buf << "] connect socket error:";
- buf << ec.message();
+ buf << "Thread ID[" << boost::this_thread::get_id() << "] ";
+ buf << "connect socket error: " << ec.message();
Logger::putLogError(LOG_CAT_L7VSD_SESSION, 37, buf.str(), __FILE__, __LINE__);
}
}
endpoint server_endpoint = up_thread_data_dest_side.get_endpoint();
up_thread_data_dest_side.initialize();
- boost::array< char , MAX_BUFFER_SIZE >& data_buff = up_thread_data_dest_side.get_data();
+ boost::array<char, MAX_BUFFER_SIZE>& data_buff = up_thread_data_dest_side.get_data();
size_t data_size = 0;
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_realserver_connect(up_thread_id, data_buff, data_size);
up_thread_data_dest_side.set_endpoint(server_endpoint);
up_thread_data_dest_side.set_size(data_size);
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
endpoint server_endpoint = up_thread_data_dest_side.get_endpoint();
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_realserver_connection_fail(up_thread_id, server_endpoint);
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
bool bres = close_socket->second->close(ec);
if (bres) {
parent_service.connection_inactive(server_endpoint);
- tcp_thread_message *up_msg = new tcp_thread_message;
- tcp_thread_message *down_msg = new tcp_thread_message;
- up_thread_function_pair up_func = up_thread_function_array[UP_FUNC_REALSERVER_DISCONNECT_EVENT];
+ tcp_thread_message *up_msg = new tcp_thread_message;
+ tcp_thread_message *down_msg = new tcp_thread_message;
+ up_thread_function_pair up_func = up_thread_function_array[UP_FUNC_REALSERVER_DISCONNECT_EVENT];
up_msg->endpoint_info = server_endpoint;
up_msg->message = up_func.second;
- std::map< DOWN_THREAD_FUNC_TYPE_TAG, tcp_session_func >::iterator down_func = up_thread_message_down_thread_function_map.find(DOWN_FUNC_REALSERVER_DISCONNECT_EVENT);
+ std::map<DOWN_THREAD_FUNC_TYPE_TAG, tcp_session_func>::iterator down_func = up_thread_message_down_thread_function_map.find(DOWN_FUNC_REALSERVER_DISCONNECT_EVENT);
down_msg->endpoint_info = server_endpoint;
down_msg->message = down_func->second;
while (!up_thread_message_que.push(up_msg)) {}
}
up_thread_send_realserver_socket_map.erase(server_endpoint);
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
Logger::putLogDebug(LOG_CAT_L7VSD_SESSION, 999, formatter.str(), __FILE__, __LINE__);
}
}
+
+// kokomade yonda
+
//! up thread close all realserver socket and raise module event of handle_realserver_disconnect
//! @param[in] process_type is prosecess type
void tcp_session::up_thread_all_realserver_disconnect(const TCP_PROCESS_TYPE_TAG process_type)
module_event = protocol_module->handle_realserver_disconnect(up_thread_id, boost::asio::ip::tcp::endpoint());
}
up_thread_send_realserver_socket_map.clear();
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
//allrealserver_disconnect.
func_tag = UP_FUNC_SORRYSERVER_SEND;
} else {
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_sorryserver_send(up_thread_id);
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
if (unlikely(func_type == up_thread_module_event_map.end())) {
//Error unknown protocol_module_base::EVENT_TAG return
std::stringstream buf;
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_sorryserver_select(up_thread_id, server_endpoint);
up_thread_data_dest_side.set_endpoint(server_endpoint);
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
endpoint sorry_endpoint = up_thread_data_dest_side.get_endpoint();
up_thread_data_dest_side.initialize();
- boost::array< char , MAX_BUFFER_SIZE >& data_buff = up_thread_data_dest_side.get_data();
+ boost::array<char, MAX_BUFFER_SIZE>& data_buff = up_thread_data_dest_side.get_data();
size_t data_size = 0;
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_sorryserver_connect(up_thread_id, data_buff, data_size);
up_thread_data_dest_side.set_endpoint(sorry_endpoint);
up_thread_data_dest_side.set_size(data_size);
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
endpoint server_endpoint = up_thread_data_dest_side.get_endpoint();
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_sorryserver_connection_fail(up_thread_id, server_endpoint);
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
rw_scoped_lock scope_lock(module_function_sorryserver_disconnect_mutex);
module_event = protocol_module->handle_sorryserver_disconnect(up_thread_id, sorry_endpoint);
}
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
rw_scoped_lock scope_lock(module_function_sorryserver_disconnect_mutex);
module_event = protocol_module->handle_sorryserver_disconnect(up_thread_id, sorry_endpoint);
}
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
//----Debug log----------------------------------------------------------------------
module_event = protocol_module->handle_sorry_enable(up_thread_id);
}
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
//----Debug log----------------------------------------------------------------------
module_event = protocol_module->handle_sorry_disable(up_thread_id);
}
- std::map< protocol_module_base::EVENT_TAG , UP_THREAD_FUNC_TYPE_TAG >::iterator func_type = up_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, UP_THREAD_FUNC_TYPE_TAG>::iterator func_type = up_thread_module_event_map.find(module_event);
up_thread_next_call_function = up_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_realserver_recv(down_thread_id, server_endpoint, data_buff, recv_size);
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
func_tag = func_type->second;
} else {
func_tag = DOWN_FUNC_REALSERVER_RECEIVE;
erase_socket++;
}
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
down_thread_next_call_function = down_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
module_event = protocol_module->handle_realserver_disconnect(down_thread_id, boost::asio::ip::tcp::endpoint());
}
down_thread_receive_realserver_socket_list.clear();
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
down_thread_next_call_function = down_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
std::size_t data_size;
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_client_connection_check(down_thread_id, data_buff, data_size);
down_thread_data_client_side.set_size(data_size);
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
down_thread_next_call_function = down_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
rw_scoped_lock scope_lock(module_function_response_send_inform_mutex);
module_event = protocol_module->handle_response_send_inform(down_thread_id);
}
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
down_thread_next_call_function = down_thread_function_array[func_type->second];
if (unlikely(LOG_LV_DEBUG == Logger::getLogLevel(LOG_CAT_L7VSD_SESSION))) {
//down_send_wait.reset();
} else {
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_client_send(down_thread_id);
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
func_tag = func_type->second;
}
break;
rw_scoped_lock scope_lock(module_function_client_disconnect_mutex);
module_event = protocol_module->handle_client_disconnect(down_thread_id);
}
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type =
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type =
down_thread_module_event_map.find(module_event);
down_thread_function_pair func = down_thread_function_array[func_type->second];
down_thread_next_call_function = func;
//----Debug log----------------------------------------------------------------------
down_thread_data_dest_side.set_size(recv_size);
protocol_module_base::EVENT_TAG module_event = protocol_module->handle_sorryserver_recv(down_thread_id, sorry_endpoint, data_buff, recv_size);
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
func_tag = func_type->second;
} else {
func_tag = DOWN_FUNC_SORRYSERVER_RECEIVE;
module_event = protocol_module->handle_sorryserver_disconnect(down_thread_id, sorry_endpoint);
}
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
down_thread_function_pair func = down_thread_function_array[func_type->second];
down_thread_next_call_function = func;
rw_scoped_lock scope_lock(module_function_sorryserver_disconnect_mutex);
module_event = protocol_module->handle_sorryserver_disconnect(down_thread_id, sorry_endpoint);
}
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
down_thread_function_pair func = down_thread_function_array[func_type->second];
down_thread_next_call_function = func;
//----Debug log----------------------------------------------------------------------
module_event = protocol_module->handle_sorry_enable(down_thread_id);
}
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
down_thread_function_pair func = down_thread_function_array[func_type->second];
down_thread_next_call_function = func;
//----Debug log----------------------------------------------------------------------
module_event = protocol_module->handle_sorry_disable(down_thread_id);
}
- std::map< protocol_module_base::EVENT_TAG , DOWN_THREAD_FUNC_TYPE_TAG >::iterator func_type = down_thread_module_event_map.find(module_event);
+ std::map<protocol_module_base::EVENT_TAG, DOWN_THREAD_FUNC_TYPE_TAG>::iterator func_type = down_thread_module_event_map.find(module_event);
down_thread_function_pair func = down_thread_function_array[func_type->second];
down_thread_next_call_function = func;