public class UnixDatagramChannel extends AbstractNativeDatagramChannel
| Modifier and Type | Method and Description |
|---|---|
UnixDatagramChannel |
bind(SocketAddress local) |
DatagramChannel |
connect(SocketAddress remote) |
UnixDatagramChannel |
connect(UnixSocketAddress remote) |
UnixDatagramChannel |
disconnect() |
SocketAddress |
getLocalAddress() |
UnixSocketAddress |
getLocalSocketAddress() |
<T> T |
getOption(SocketOption<T> name) |
SocketAddress |
getRemoteAddress() |
UnixSocketAddress |
getRemoteSocketAddress() |
boolean |
isConnected() |
MembershipKey |
join(InetAddress group,
NetworkInterface interf) |
MembershipKey |
join(InetAddress group,
NetworkInterface interf,
InetAddress source) |
static UnixDatagramChannel |
open() |
static UnixDatagramChannel[] |
pair() |
int |
read(ByteBuffer dst) |
UnixSocketAddress |
receive(ByteBuffer src) |
int |
send(ByteBuffer src,
SocketAddress target) |
<T> DatagramChannel |
setOption(SocketOption<T> name,
T value) |
UnixDatagramSocket |
socket() |
Set<SocketOption<?>> |
supportedOptions() |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
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
IOExceptionpublic 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 © 2016. All rights reserved.