The UDP transport enables events to be sent and received as Datagram packets.
The Javadoc for this transport can be found here .
|receiveBufferSize||integer||no||The size of the receiving buffer for the socket.|
|receiveTimeout||long||no||The amount of time after which a Receive call will time out.|
|sendBufferSize||integer||no||The size of the sending buffer for the socket.|
|sendTimeout||long||no||The amount of time after which a Send call will time out.|
|socketLinger||long||no||The amount of time the socket will remain open after a closesocket call.|
|broadcast||boolean||no||Whether to enable the socket to send broadcast data.|
|keepSendSocketOpen||boolean||no||Whether to keep the Sending socket open.|
You configure UDP endpoints just as you would with any other transport, with the following additional attributes:
- host: the IP address of the server, such as www.mulesoft.com, localhost, or 127.0.0.1
- port: the port number of the server.
The default message payload of the UDP transport for incoming messages is a byte array.