I want to send numerous udp messages by udp client at once ,but the demo only send one message.how could i achieve it?
With the demo code,I can only send a finite number of messages.I want to use a while(true) to send message ,how could i achieve it?
public static void main(String[] args) { Connection connection = UdpClient.create() .host("localhost") .port(8080) .handle((udpInbound, udpOutbound) -> { return udpOutbound.sendString(Mono.just("end")).sendString(Mono.just("end1")).sendString(Mono.just("end2")); }) .connectNow(Duration.ofSeconds(30)); connection.onDispose() .block(); }