public class UnixDatagramChannel extends AbstractNativeDatagramChannel
getFD, implCloseSelectableChannel, implConfigureBlocking, read, setFD
open, read, validOps, write
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
register
begin, close, end, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public static final UnixDatagramChannel open() throws IOException
IOException
public static final UnixDatagramChannel[] pair() throws IOException
IOException
public UnixDatagramChannel bind(SocketAddress local) throws IOException
bind
in interface NetworkChannel
bind
in class DatagramChannel
IOException
public UnixDatagramChannel connect(UnixSocketAddress remote)
public UnixDatagramChannel disconnect() throws IOException
disconnect
in class DatagramChannel
IOException
public boolean isConnected()
isConnected
in class DatagramChannel
public final UnixSocketAddress getRemoteSocketAddress()
public final UnixSocketAddress getLocalSocketAddress()
public UnixSocketAddress receive(ByteBuffer src) throws IOException
receive
in class DatagramChannel
IOException
public int send(ByteBuffer src, SocketAddress target) throws IOException
send
in class DatagramChannel
IOException
public DatagramChannel connect(SocketAddress remote) throws IOException
connect
in class DatagramChannel
IOException
public UnixDatagramSocket socket()
socket
in class DatagramChannel
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write
in interface GatheringByteChannel
write
in class AbstractNativeDatagramChannel
IOException
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
read
in class AbstractNativeDatagramChannel
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
write
in class AbstractNativeDatagramChannel
IOException
public SocketAddress getRemoteAddress() throws IOException
getRemoteAddress
in class DatagramChannel
IOException
public SocketAddress getLocalAddress() throws IOException
getLocalAddress
in interface NetworkChannel
getLocalAddress
in class DatagramChannel
IOException
public final Set<SocketOption<?>> supportedOptions()
public <T> T getOption(SocketOption<T> name) throws IOException
IOException
public <T> DatagramChannel setOption(SocketOption<T> name, T value) throws IOException
setOption
in interface NetworkChannel
setOption
in class DatagramChannel
IOException
public MembershipKey join(InetAddress group, NetworkInterface interf)
public MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source)
Copyright © 2018. All rights reserved.