src/main/java/reactor/netty/udp/UdpServer.java
/**
	 * Attach an IO handler to react on connected client
	 *
	 * @param handler an IO handler that can dispose underlying connection when {@link
	 * Publisher} terminates.
	 *
	 * @return a new {@link UdpServer}
	 */
Attach an IO handler to react on connected client
@param handler an IO handler that can dispose underlying connection when {@link
Publisher} terminates.

@return a new  UdpServer
Attach an IO handler to react on connected client @param handler an IO handler that can dispose underlying connection when { @link Publisher } terminates . @return a new UdpServer
public final UdpServer handle(BiFunction<? super UdpInbound, ? super UdpOutbound, ? extends Publisher<Void>> handler) {
		Objects.requireNonNull(handler, "handler");
		return doOnBound(c -> {
			if (log.isDebugEnabled()) {
				log.debug(format(c.channel(), "Handler is being applied: {}"), handler);
			}
			Mono.fromDirect(handler.apply((UdpInbound) c, (UdpOutbound) c))
			    .subscribe(c.disposeSubscriber());
		});
	}
public final UdpServer handle ( BiFunction < ? super UdpInbound , ? super UdpOutbound , ? extends Publisher < Void > > handler ) { Objects . requireNonNull ( handler , "handler" ) ; return doOnBound ( c -> { if ( log . isDebugEnabled ( ) ) { log . debug ( format ( c . channel ( ) , "Handler is being applied: {}" ) , handler ) ; } Mono . fromDirect ( handler . apply ( ( UdpInbound ) c , ( UdpOutbound ) c ) ) . subscribe ( c . disposeSubscriber ( ) ) ; } ) ; }
Attach an IO handler to react on connected client
 @param handler an IO handler that can dispose underlying connection when {@link
 Publisher} terminates.
Attach an IO handler to react on connected client @param handler an IO handler that can dispose underlying connection when { @link Publisher } terminates .