Java io.vertx.core.datagram DatagramSocket fields, constructors, methods, implement or subclass

Example usage for Java io.vertx.core.datagram DatagramSocket fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.vertx.core.datagram DatagramSocket.

The text is from its open source code.

Method

DatagramSocketblockMulticastGroup(String multicastAddress, String sourceToBlock, Handler> handler)
Block the given address for the given multicast address and notifies the Handler once the operation completes.
FutureblockMulticastGroup(String multicastAddress, String networkInterface, String sourceToBlock)
Like #blockMulticastGroup(String,String,String,Handler) but returns a Future of the asynchronous result
DatagramSockethandler(Handler handler)
DatagramSocketlisten(int port, String host, Handler> handler)
Start listening on the given port and host.
DatagramSocketlistenMulticastGroup(String multicastAddress, Handler> handler)
Joins a multicast group and listens for packets send to it.
DatagramSocketsend(Buffer packet, int port, String host, Handler> handler)
Write the given io.vertx.core.buffer.Buffer to the io.vertx.core.net.SocketAddress .
DatagramSocketsend(String str, int port, String host, Handler> handler)
Write the given String to the io.vertx.core.net.SocketAddress using UTF8 encoding.
Futuresend(String str, String enc, int port, String host)
Like #send(String,String,int,String,Handler) but returns a Future of the asynchronous result
DatagramSocketunlistenMulticastGroup(String multicastAddress, Handler> handler)
Leaves a multicast group and stops listening for packets send to it.