Skip to content

Commit 3a7d9c0

Browse files
jepemicferreiragonz
authored andcommitted
Refs #20120: Solve conflicts
Signed-off-by: Jesus Perez <[email protected]>
1 parent d77816d commit 3a7d9c0

File tree

2 files changed

+8
-34
lines changed

2 files changed

+8
-34
lines changed

src/cpp/rtps/transport/TCPTransportInterface.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,8 +1385,10 @@ void TCPTransportInterface::SocketAccepted(
13851385
channel_weak_ptr, rtcp_manager_weak_ptr));
13861386

13871387
EPROSIMA_LOG_INFO(RTCP, "Accepted connection (local: "
1388-
<< local_endpoint_to_locator(channel) << ", remote: "
1389-
<< remote_endpoint_to_locator(channel) << ")");
1388+
<< channel->local_endpoint().address() << ":"
1389+
<< channel->local_endpoint().port() << "), remote: "
1390+
<< channel->remote_endpoint().address() << ":"
1391+
<< channel->remote_endpoint().port() << ")");
13901392
}
13911393
else
13921394
{
@@ -1431,8 +1433,10 @@ void TCPTransportInterface::SecureSocketAccepted(
14311433
channel_weak_ptr, rtcp_manager_weak_ptr));
14321434

14331435
EPROSIMA_LOG_INFO(RTCP, " Accepted connection (local: "
1434-
<< local_endpoint_to_locator(secure_channel) << ", remote: "
1435-
<< remote_endpoint_to_locator(secure_channel) << ")");
1436+
<< socket->lowest_layer().local_endpoint().address() << ":"
1437+
<< socket->lowest_layer().local_endpoint().port() << "), remote: "
1438+
<< socket->lowest_layer().remote_endpoint().address() << ":"
1439+
<< socket->lowest_layer().remote_endpoint().port() << ")");
14361440
}
14371441
else
14381442
{

test/unittest/transport/CMakeLists.txt

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -327,36 +327,6 @@ if(NOT DISABLE_UDPV6_TESTS)
327327
set(TRANSPORT_XFAIL_LIST ${TRANSPORT_XFAIL_LIST} XFAIL_TCP6)
328328
endif()
329329

330-
add_executable(test_UDPv4Tests ${TEST_UDPV4TESTS_SOURCE})
331-
target_compile_definitions(test_UDPv4Tests PRIVATE
332-
BOOST_ASIO_STANDALONE
333-
ASIO_STANDALONE
334-
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
335-
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
336-
)
337-
target_include_directories(test_UDPv4Tests PRIVATE
338-
${Asio_INCLUDE_DIR}
339-
${PROJECT_SOURCE_DIR}/test/mock/rtps/ParticipantProxyData
340-
${PROJECT_SOURCE_DIR}/test/mock/dds/QosPolicies
341-
${PROJECT_SOURCE_DIR}/test/mock/rtps/MessageReceiver
342-
${PROJECT_SOURCE_DIR}/test/mock/rtps/ReceiverResource
343-
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include
344-
${PROJECT_SOURCE_DIR}/src/cpp
345-
$<$<BOOL:${ANDROID}>:${ANDROID_IFADDRS_INCLUDE_DIR}>
346-
)
347-
target_link_libraries(test_UDPv4Tests
348-
fastcdr
349-
GTest::gtest
350-
${MOCKS})
351-
if(QNX)
352-
target_link_libraries(test_UDPv4Tests socket)
353-
endif()
354-
if(MSVC OR MSVC_IDE)
355-
target_link_libraries(test_UDPv4Tests ${PRIVACY} iphlpapi Shlwapi)
356-
else()
357-
target_link_libraries(test_UDPv4Tests ${PRIVACY})
358-
endif()
359-
add_gtest(test_UDPv4Tests SOURCES ${TEST_UDPV4TESTS_SOURCE})
360330
set(TRANSPORT_XFAIL_LIST ${TRANSPORT_XFAIL_LIST} XFAIL_TEST_UDP4)
361331

362332
add_executable(TCPv4Tests ${TCPV4TESTS_SOURCE})

0 commit comments

Comments
 (0)