INT-3984: UDP: OS Selected Server Port
JIRA: https://jira.spring.io/browse/INT-3894 Allow UDP server port (and sender Ack port) to be selected by the operating system. Also fix multicast tests to run on all platforms. Change tests to use OS selected port.
This commit is contained in:
@@ -53,6 +53,9 @@ This enables the receiving side to verify the length of the packet received.
|
||||
If a receiving system uses a buffer that is too short the contain the packet, the packet can be truncated.
|
||||
The length header provides a mechanism to detect this.
|
||||
|
||||
Starting with _version 4.3_, the `port` can be set to `0`, in which case the Operating System chooses the port; the
|
||||
chosen port can be discovered by invoking `getPort()` after the adapter is started and `isListening()` returns `true`.
|
||||
|
||||
[source,xml]
|
||||
----
|
||||
<int-ip:udp-outbound-channel-adapter id="udpOut"
|
||||
@@ -94,6 +97,8 @@ TIP: When multicast is true, an additional attribute min-acks-for-success specif
|
||||
|
||||
For even more reliable networking, TCP can be used.
|
||||
|
||||
Starting with _version 4.3_, the `ackPort` can be set to `0`, in which case the Operating System chooses the port.
|
||||
|
||||
[source,xml]
|
||||
----
|
||||
<int-ip:udp-inbound-channel-adapter id="udpReceiver"
|
||||
|
||||
Reference in New Issue
Block a user