Task #3346
closed
MulticastUdpTransport: test suite improvement
Added by Junxiao Shi about 9 years ago.
Updated almost 9 years ago.
Description
Improve MulticastUdpTransport
test suite with new test cases:
- static properties for non-local IP
- send
- receive normal
- receive malformed
- receive from multiple remote endpoints
- Blocks Task #3172: Refactor Face: completion added
- Related to Task #3307: UnicastUdpTransport: test suite improvement added
- Description updated (diff)
As suggested in #3306 note-10, IP_MULTICAST_LOOP socket option can be used in order to observe sent packets.
If feasible, send and receive test cases shall be separate.
In send test case, the MulticastUdpTransport
is initialized normally, and another socket can join the multicast group at the destination port and set IP_MULTICAST_LOOP option to observe the packets.
In receive test case, the MulticastUdpTransport
is initialized normally, and another socket can send to the multicast group, and also set IP_MULTICAST_LOOP option to cause the MulticastUdpTransport
to receive the packets.
To receive from multiple remote endpoints, use different source port numbers.
- Subject changed from UnicastUdpTransport: test suite improvement to MulticastUdpTransport: test suite improvement
- Assignee set to Eric Newberry
- Status changed from New to In Progress
- Status changed from In Progress to Code review
- % Done changed from 0 to 80
- Blocks deleted (Task #3172: Refactor Face: completion)
As decided in #3172 note-17, the Change for this issue must not be merged until #3172 Change is merged.
- % Done changed from 80 to 100
- Status changed from Code review to Closed
Also available in: Atom
PDF