Class OioDatagramChannel
java.lang.Object
org.jboss.netty.channel.AbstractChannel
org.jboss.netty.channel.socket.oio.AbstractOioChannel
org.jboss.netty.channel.socket.oio.OioDatagramChannel
- All Implemented Interfaces:
Comparable<Channel>
,Channel
,DatagramChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DatagramChannelConfig
(package private) final MulticastSocket
Fields inherited from class org.jboss.netty.channel.socket.oio.AbstractOioChannel
interestOpsLock, remoteAddress, worker, workerThread
Fields inherited from interface org.jboss.netty.channel.Channel
OP_NONE, OP_READ, OP_READ_WRITE, OP_WRITE
-
Constructor Summary
ConstructorsConstructorDescriptionOioDatagramChannel
(ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink) -
Method Summary
Modifier and TypeMethodDescription(package private) void
private void
Returns the configuration of this channel.(package private) InetSocketAddress
(package private) InetSocketAddress
(package private) boolean
(package private) boolean
(package private) boolean
joinGroup
(InetAddress multicastAddress) Joins a multicast group.joinGroup
(InetSocketAddress multicastAddress, NetworkInterface networkInterface) Joins the specified multicast group at the specified interface.leaveGroup
(InetAddress multicastAddress) Leaves a multicast group.leaveGroup
(InetSocketAddress multicastAddress, NetworkInterface networkInterface) Leaves a multicast group on a specified local interface.Methods inherited from class org.jboss.netty.channel.socket.oio.AbstractOioChannel
getInternalInterestOps, getLocalAddress, getRemoteAddress, isBound, isConnected, setClosed, setInternalInterestOps, write
Methods inherited from class org.jboss.netty.channel.AbstractChannel
bind, close, compareTo, connect, disconnect, equals, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getSucceededFuture, getUnsupportedOperationFuture, getUserDefinedWritability, hashCode, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUnwritable, setUserDefinedWritability, setWritable, toString, unbind, write
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jboss.netty.channel.Channel
bind, close, connect, disconnect, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getUserDefinedWritability, isBound, isConnected, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUserDefinedWritability, unbind, write, write
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.jboss.netty.channel.socket.DatagramChannel
getLocalAddress, getRemoteAddress
-
Field Details
-
socket
-
config
-
-
Constructor Details
-
OioDatagramChannel
OioDatagramChannel(ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink)
-
-
Method Details
-
getConfig
Description copied from interface:Channel
Returns the configuration of this channel.- Specified by:
getConfig
in interfaceChannel
- Specified by:
getConfig
in interfaceDatagramChannel
-
joinGroup
Description copied from interface:DatagramChannel
Joins a multicast group.- Specified by:
joinGroup
in interfaceDatagramChannel
-
joinGroup
public ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) Description copied from interface:DatagramChannel
Joins the specified multicast group at the specified interface.- Specified by:
joinGroup
in interfaceDatagramChannel
-
ensureBound
private void ensureBound() -
leaveGroup
Description copied from interface:DatagramChannel
Leaves a multicast group.- Specified by:
leaveGroup
in interfaceDatagramChannel
-
leaveGroup
public ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) Description copied from interface:DatagramChannel
Leaves a multicast group on a specified local interface.- Specified by:
leaveGroup
in interfaceDatagramChannel
-
isSocketBound
boolean isSocketBound()- Specified by:
isSocketBound
in classAbstractOioChannel
-
isSocketConnected
boolean isSocketConnected()- Specified by:
isSocketConnected
in classAbstractOioChannel
-
getLocalSocketAddress
- Specified by:
getLocalSocketAddress
in classAbstractOioChannel
- Throws:
Exception
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddress
in classAbstractOioChannel
- Throws:
Exception
-
closeSocket
void closeSocket()- Specified by:
closeSocket
in classAbstractOioChannel
-
isSocketClosed
boolean isSocketClosed()- Specified by:
isSocketClosed
in classAbstractOioChannel
-