Why OpenAndBindUnicastOutputSocket needs bind() #5533
-
For OutputSocket, i think it is to send socket, why we need bind() here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
we get log as below and find the error is [Address already in use], W fastdds : [Warning]Cannot create send resource for endpoint remote locator (01.0f.0a.f5.cb.4a.6d.12.01.00.00.00|0.1.0.c2, UDPv4:[239.255.0.1]:7650) -> Function createSendResources |
Beta Was this translation helpful? Give feedback.
-
Misunderstand the code. |
Beta Was this translation helpful? Give feedback.
Misunderstand the code.
239.255.0.1:7650 is the REMOTE locator, and the port already in use means to bind a source port to send data to remote endpoint.
We set a wrong port through descriptor->m_output_udp_socket.