public class UnixDatagramChannel extends AbstractNativeDatagramChannel
getFD, implCloseSelectableChannel, implConfigureBlocking, read, setFDopen, read, validOps, writeblockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic static final UnixDatagramChannel open() throws IOException
IOExceptionpublic static final UnixDatagramChannel[] pair() throws IOException
IOExceptionpublic UnixDatagramChannel bind(SocketAddress local) throws IOException
bind in interface NetworkChannelbind in class DatagramChannelIOExceptionpublic UnixDatagramChannel connect(UnixSocketAddress remote)
public UnixDatagramChannel disconnect() throws IOException
disconnect in class DatagramChannelIOExceptionpublic boolean isConnected()
isConnected in class DatagramChannelpublic final UnixSocketAddress getRemoteSocketAddress()
public final UnixSocketAddress getLocalSocketAddress()
public UnixSocketAddress receive(ByteBuffer src) throws IOException
receive in class DatagramChannelIOExceptionpublic int send(ByteBuffer src, SocketAddress target) throws IOException
send in class DatagramChannelIOExceptionpublic DatagramChannel connect(SocketAddress remote) throws IOException
connect in class DatagramChannelIOExceptionpublic UnixDatagramSocket socket()
socket in class DatagramChannelpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface GatheringByteChannelwrite in class AbstractNativeDatagramChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in class AbstractNativeDatagramChannelIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelwrite in class AbstractNativeDatagramChannelIOExceptionpublic SocketAddress getRemoteAddress() throws IOException
getRemoteAddress in class DatagramChannelIOExceptionpublic SocketAddress getLocalAddress() throws IOException
getLocalAddress in interface NetworkChannelgetLocalAddress in class DatagramChannelIOExceptionpublic final Set<SocketOption<?>> supportedOptions()
public <T> T getOption(SocketOption<T> name) throws IOException
IOExceptionpublic <T> DatagramChannel setOption(SocketOption<T> name, T value) throws IOException
setOption in interface NetworkChannelsetOption in class DatagramChannelIOExceptionpublic MembershipKey join(InetAddress group, NetworkInterface interf)
public MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source)
Copyright © 2017. All rights reserved.