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 MulticastSocketFields inherited from class AbstractOioChannel
interestOpsLock, remoteAddress, worker, workerThreadFields inherited from interface 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) voidprivate voidReturns the configuration of this channel.(package private) InetSocketAddress(package private) InetSocketAddress(package private) boolean(package private) boolean(package private) booleanjoinGroup(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 AbstractOioChannel
getInternalInterestOps, getLocalAddress, getRemoteAddress, isBound, isConnected, setClosed, setInternalInterestOps, writeMethods inherited from class 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, writeMethods inherited from interface Channel
bind, close, connect, disconnect, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getUserDefinedWritability, isBound, isConnected, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUserDefinedWritability, unbind, write, writeMethods inherited from interface Comparable
compareToMethods inherited from interface DatagramChannel
getLocalAddress, getRemoteAddress
-
Field Details
-
socket
-
config
-
-
Constructor Details
-
OioDatagramChannel
OioDatagramChannel(ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink)
-
-
Method Details
-
getConfig
Description copied from interface:ChannelReturns the configuration of this channel.- Specified by:
getConfigin interfaceChannel- Specified by:
getConfigin interfaceDatagramChannel
-
joinGroup
Description copied from interface:DatagramChannelJoins a multicast group.- Specified by:
joinGroupin interfaceDatagramChannel
-
joinGroup
public ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) Description copied from interface:DatagramChannelJoins the specified multicast group at the specified interface.- Specified by:
joinGroupin interfaceDatagramChannel
-
ensureBound
private void ensureBound() -
leaveGroup
Description copied from interface:DatagramChannelLeaves a multicast group.- Specified by:
leaveGroupin interfaceDatagramChannel
-
leaveGroup
public ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface) Description copied from interface:DatagramChannelLeaves a multicast group on a specified local interface.- Specified by:
leaveGroupin interfaceDatagramChannel
-
isSocketBound
boolean isSocketBound()- Specified by:
isSocketBoundin classAbstractOioChannel
-
isSocketConnected
boolean isSocketConnected()- Specified by:
isSocketConnectedin classAbstractOioChannel
-
getLocalSocketAddress
- Specified by:
getLocalSocketAddressin classAbstractOioChannel- Throws:
Exception
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddressin classAbstractOioChannel- Throws:
Exception
-
closeSocket
void closeSocket()- Specified by:
closeSocketin classAbstractOioChannel
-
isSocketClosed
boolean isSocketClosed()- Specified by:
isSocketClosedin classAbstractOioChannel
-