public class SniffyDatagramChannelAdapter extends DatagramChannel implements sun.nio.ch.SelChImpl
| Modifier | Constructor and Description |
|---|---|
protected |
SniffyDatagramChannelAdapter(SelectorProvider provider,
DatagramChannel delegate) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected SniffyDatagramChannelAdapter(SelectorProvider provider, DatagramChannel delegate)
@IgnoreJRERequirement public DatagramChannel bind(SocketAddress local) throws IOException
bind in interface NetworkChannelbind in class DatagramChannelIOException@IgnoreJRERequirement public <T> DatagramChannel setOption(SocketOption<T> name, T value) throws IOException
setOption in interface NetworkChannelsetOption in class DatagramChannelIOExceptionpublic DatagramSocket socket()
socket in class DatagramChannelpublic boolean isConnected()
isConnected in class DatagramChannelpublic DatagramChannel connect(SocketAddress remote) throws IOException
connect in class DatagramChannelIOExceptionpublic DatagramChannel disconnect() throws IOException
disconnect in class DatagramChannelIOException@IgnoreJRERequirement public SocketAddress getRemoteAddress() throws IOException
getRemoteAddress in class DatagramChannelIOExceptionpublic SocketAddress receive(ByteBuffer dst) throws IOException
receive in class DatagramChannelIOExceptionpublic int send(ByteBuffer src, SocketAddress target) throws IOException
send in class DatagramChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in class DatagramChannelIOExceptionpublic long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read in interface ScatteringByteChannelread in class DatagramChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelwrite in class DatagramChannelIOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface GatheringByteChannelwrite in class DatagramChannelIOException@IgnoreJRERequirement public SocketAddress getLocalAddress() throws IOException
getLocalAddress in interface NetworkChannelgetLocalAddress in class DatagramChannelIOExceptionpublic void implCloseSelectableChannel()
implCloseSelectableChannel in class AbstractSelectableChannelpublic void implConfigureBlocking(boolean block)
implConfigureBlocking in class AbstractSelectableChannel@IgnoreJRERequirement public <T> T getOption(SocketOption<T> name) throws IOException
getOption in interface NetworkChannelIOException@IgnoreJRERequirement public Set<SocketOption<?>> supportedOptions()
supportedOptions in interface NetworkChannel@IgnoreJRERequirement public MembershipKey join(InetAddress group, NetworkInterface interf) throws IOException
join in interface MulticastChannelIOException@IgnoreJRERequirement public MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source) throws IOException
join in interface MulticastChannelIOExceptionpublic FileDescriptor getFD()
getFD in interface sun.nio.ch.SelChImplpublic int getFDVal()
getFDVal in interface sun.nio.ch.SelChImplpublic boolean translateAndUpdateReadyOps(int ops,
sun.nio.ch.SelectionKeyImpl ski)
translateAndUpdateReadyOps in interface sun.nio.ch.SelChImplpublic boolean translateAndSetReadyOps(int ops,
sun.nio.ch.SelectionKeyImpl ski)
translateAndSetReadyOps in interface sun.nio.ch.SelChImplpublic void kill()
throws IOException
kill in interface sun.nio.ch.SelChImplIOExceptionpublic void translateAndSetInterestOps(int ops,
sun.nio.ch.SelectionKeyImpl sk)
translateAndSetInterestOps in interface sun.nio.ch.SelChImplpublic int translateInterestOps(int ops)
public void park(int event,
long nanos)
throws IOException
IOExceptionpublic void park(int event)
throws IOException
IOExceptionCopyright © 2021. All rights reserved.