Package | Description |
---|---|
io.vertx.core |
= Vert.x Core Manual
:toc: left
At the heart of Vert.x is a set of Java APIs that we call *Vert.x Core*
https://github.com/eclipse/vert.x[Repository].
|
io.vertx.core.datagram |
== Datagram sockets (UDP)
Using User Datagram Protocol (UDP) with Vert.x is a piece of cake.
|
io.vertx.core.spi.metrics |
Modifier and Type | Method and Description |
---|---|
DatagramSocket |
Vertx.createDatagramSocket(DatagramSocketOptions options)
Create a datagram socket using the specified options
|
Modifier and Type | Method and Description |
---|---|
DatagramSocketOptions |
DatagramSocketOptions.setBroadcast(boolean broadcast)
Set if the socket can receive broadcast packets
|
DatagramSocketOptions |
DatagramSocketOptions.setIpV6(boolean ipV6)
Set if IP v6 should be used
|
DatagramSocketOptions |
DatagramSocketOptions.setLogActivity(boolean logEnabled) |
DatagramSocketOptions |
DatagramSocketOptions.setLoopbackModeDisabled(boolean loopbackModeDisabled)
Set if loopback mode is disabled
|
DatagramSocketOptions |
DatagramSocketOptions.setMulticastNetworkInterface(String multicastNetworkInterface)
Set the multicast network interface address
|
DatagramSocketOptions |
DatagramSocketOptions.setMulticastTimeToLive(int multicastTimeToLive)
Set the multicast ttl value
|
DatagramSocketOptions |
DatagramSocketOptions.setReceiveBufferSize(int receiveBufferSize) |
DatagramSocketOptions |
DatagramSocketOptions.setReuseAddress(boolean reuseAddress) |
DatagramSocketOptions |
DatagramSocketOptions.setSendBufferSize(int sendBufferSize) |
DatagramSocketOptions |
DatagramSocketOptions.setTrafficClass(int trafficClass) |
Modifier and Type | Method and Description |
---|---|
static void |
DatagramSocketOptionsConverter.fromJson(JsonObject json,
DatagramSocketOptions obj) |
static void |
DatagramSocketOptionsConverter.toJson(DatagramSocketOptions obj,
JsonObject json) |
Constructor and Description |
---|
DatagramSocketOptions(DatagramSocketOptions other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
DatagramSocketMetrics |
VertxMetrics.createMetrics(DatagramSocket socket,
DatagramSocketOptions options)
Provides the datagram/udp metrics SPI when a datagram socket is created.
|
Copyright © 2017. All rights reserved.