DatagramChannel Type — netty Architecture
Architecture documentation for the DatagramChannel type/interface in DatagramChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7b0156d4_1050_6e18_b7a7_709432497572["DatagramChannel"] ae7c923b_713f_853d_5931_6bdea5300b28["DatagramChannel.java"] 7b0156d4_1050_6e18_b7a7_709432497572 -->|defined in| ae7c923b_713f_853d_5931_6bdea5300b28 style 7b0156d4_1050_6e18_b7a7_709432497572 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/socket/DatagramChannel.java lines 29–165
public interface DatagramChannel extends Channel {
@Override
DatagramChannelConfig config();
@Override
InetSocketAddress localAddress();
@Override
InetSocketAddress remoteAddress();
/**
* Return {@code true} if the {@link DatagramChannel} is connected to the remote peer.
*/
boolean isConnected();
/**
* Joins a multicast group and notifies the {@link ChannelFuture} once the operation completes.
*/
ChannelFuture joinGroup(InetAddress multicastAddress);
/**
* Joins a multicast group and notifies the {@link ChannelFuture} once the operation completes.
*
* The given {@link ChannelFuture} will be notified and also returned.
*/
ChannelFuture joinGroup(InetAddress multicastAddress, ChannelPromise future);
/**
* Joins the specified multicast group at the specified interface and notifies the {@link ChannelFuture}
* once the operation completes.
*/
ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface);
/**
* Joins the specified multicast group at the specified interface and notifies the {@link ChannelFuture}
* once the operation completes.
*
* The given {@link ChannelFuture} will be notified and also returned.
*/
ChannelFuture joinGroup(
InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelPromise future);
/**
* Joins the specified multicast group at the specified interface and notifies the {@link ChannelFuture}
* once the operation completes.
*/
ChannelFuture joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source);
/**
* Joins the specified multicast group at the specified interface and notifies the {@link ChannelFuture}
* once the operation completes.
*
* The given {@link ChannelFuture} will be notified and also returned.
*/
ChannelFuture joinGroup(
InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, ChannelPromise future);
/**
* Leaves a multicast group and notifies the {@link ChannelFuture} once the operation completes.
*/
ChannelFuture leaveGroup(InetAddress multicastAddress);
/**
* Leaves a multicast group and notifies the {@link ChannelFuture} once the operation completes.
*
* The given {@link ChannelFuture} will be notified and also returned.
*/
ChannelFuture leaveGroup(InetAddress multicastAddress, ChannelPromise future);
/**
* Leaves a multicast group on a specified local interface and notifies the {@link ChannelFuture} once the
* operation completes.
*/
ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface);
/**
* Leaves a multicast group on a specified local interface and notifies the {@link ChannelFuture} once the
* operation completes.
*
* The given {@link ChannelFuture} will be notified and also returned.
*/
ChannelFuture leaveGroup(
InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelPromise future);
Source
Frequently Asked Questions
What is the DatagramChannel type?
DatagramChannel is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/DatagramChannel.java.
Where is DatagramChannel defined?
DatagramChannel is defined in transport/src/main/java/io/netty/channel/socket/DatagramChannel.java at line 29.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free