|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatagramChannel
A UDP/IP Channel which is created by DatagramChannelFactory.
| Field Summary |
|---|
| Fields inherited from interface org.jboss.netty.channel.Channel |
|---|
OP_NONE, OP_READ, OP_READ_WRITE, OP_WRITE |
| Method Summary | |
|---|---|
DatagramChannelConfig |
getConfig()
Returns the configuration of this channel. |
java.net.InetSocketAddress |
getLocalAddress()
Returns the local address where this channel is bound to. |
java.net.InetSocketAddress |
getRemoteAddress()
Returns the remote address where this channel is connected to. |
void |
joinGroup(java.net.InetAddress multicastAddress)
Joins a multicast group. |
void |
joinGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface)
Joins the specified multicast group at the specified interface. |
void |
leaveGroup(java.net.InetAddress multicastAddress)
Leaves a multicast group. |
void |
leaveGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface)
Leaves a multicast group on a specified local interface. |
| Methods inherited from interface org.jboss.netty.channel.Channel |
|---|
bind, close, connect, disconnect, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, isBound, isConnected, isOpen, isReadable, isWritable, setInterestOps, setReadable, unbind, write, write |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
DatagramChannelConfig getConfig()
Channel
getConfig in interface Channeljava.net.InetSocketAddress getLocalAddress()
ChannelSocketAddress is supposed to be down-cast into more concrete
type such as InetSocketAddress to retrieve the detailed
information.
getLocalAddress in interface Channelnull if this channel is not bound.java.net.InetSocketAddress getRemoteAddress()
ChannelSocketAddress is supposed to be down-cast into more
concrete type such as InetSocketAddress to retrieve the detailed
information.
getRemoteAddress in interface Channelnull if this channel is not connected.
If this channel is not connected but it can receive messages
from arbitrary remote addresses (e.g. DatagramChannel,
use MessageEvent.getRemoteAddress() to determine
the origination of the received message as this method will
return null.void joinGroup(java.net.InetAddress multicastAddress)
void joinGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface)
void leaveGroup(java.net.InetAddress multicastAddress)
void leaveGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||