Skip to content

Commit

Permalink
check io mapping logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchao412 committed Feb 27, 2024
1 parent e66f79c commit 03251cf
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions PSS_ASIO/Message/IotoIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,11 @@ int CIotoIo::check_io_mapping(const CIo_Connect_Info& connect_info)
return 1;
}

if (ENUM_IO_BRIDGE_TYPE::IO_BRIDGE_BATH == connect_info.bridge_type_)
{
if (true == compare_connect_io(connect_info.to_io_, connect_info.to_io_type_, Connect_Info.from_io_, Connect_Info.from_io_type_))
{
//点对点链接已存在,不能添加
PSS_LOGGER_WARN("[CIotoIo::check_io_mapping]io mapping loop,to_io={}:{} is exist.", connect_info.to_io_.m_strClientIP, connect_info.to_io_.m_u2Port);
return 2;
}
if (true == compare_connect_io(connect_info.to_io_, connect_info.to_io_type_, Connect_Info.from_io_, Connect_Info.from_io_type_))
{
//点对点链接已存在,不能添加
PSS_LOGGER_WARN("[CIotoIo::check_io_mapping]io mapping loop,to_io={}:{} is exist.", connect_info.to_io_.m_strClientIP, connect_info.to_io_.m_u2Port);
return 2;
}
}

Expand Down

0 comments on commit 03251cf

Please sign in to comment.