public class RSDatagramChannel extends DatagramChannel
| Modifier | Constructor and Description |
|---|---|
protected |
RSDatagramChannel(SelectorProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
DatagramChannel |
bind(SocketAddress local) |
DatagramChannel |
connect(SocketAddress remote) |
DatagramChannel |
disconnect() |
SocketAddress |
getLocalAddress() |
<T> T |
getOption(SocketOption<T> arg0) |
RawSocket |
getRawSocket() |
SocketAddress |
getRemoteAddress() |
protected void |
implCloseSelectableChannel() |
protected void |
implConfigureBlocking(boolean block) |
boolean |
isConnected() |
MembershipKey |
join(InetAddress arg0,
NetworkInterface arg1) |
MembershipKey |
join(InetAddress arg0,
NetworkInterface arg1,
InetAddress arg2) |
int |
read(ByteBuffer dst) |
long |
read(ByteBuffer[] dsts,
int offset,
int length) |
SocketAddress |
receive(ByteBuffer dst) |
int |
send(ByteBuffer src,
SocketAddress target) |
<T> DatagramChannel |
setOption(SocketOption<T> name,
T value) |
DatagramSocket |
socket() |
Set<SocketOption<?>> |
supportedOptions() |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected RSDatagramChannel(SelectorProvider provider) throws IOException
IOExceptionpublic MembershipKey join(InetAddress arg0, NetworkInterface arg1) throws IOException
IOExceptionpublic MembershipKey join(InetAddress arg0, NetworkInterface arg1, InetAddress arg2) throws IOException
IOExceptionpublic SocketAddress getLocalAddress() throws IOException
IOExceptionpublic <T> T getOption(SocketOption<T> arg0) throws IOException
IOExceptionpublic Set<SocketOption<?>> supportedOptions()
public DatagramChannel bind(SocketAddress local) throws IOException
bind in interface NetworkChannelbind in class DatagramChannelIOExceptionpublic DatagramChannel connect(SocketAddress remote) throws IOException
connect in class DatagramChannelIOExceptionpublic DatagramChannel disconnect() throws IOException
disconnect in class DatagramChannelIOExceptionpublic SocketAddress getRemoteAddress() throws IOException
getRemoteAddress in class DatagramChannelIOExceptionpublic boolean isConnected()
isConnected in class DatagramChannelpublic 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 SocketAddress receive(ByteBuffer dst) throws IOException
receive in class DatagramChannelIOExceptionpublic int send(ByteBuffer src, SocketAddress target) throws IOException
send in class DatagramChannelIOExceptionpublic <T> DatagramChannel setOption(SocketOption<T> name, T value) throws IOException
setOption in interface NetworkChannelsetOption in class DatagramChannelIOExceptionpublic DatagramSocket socket()
socket in class DatagramChannelpublic 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 DatagramChannelIOExceptionprotected void implCloseSelectableChannel()
throws IOException
implCloseSelectableChannel in class AbstractSelectableChannelIOExceptionprotected void implConfigureBlocking(boolean block)
throws IOException
implConfigureBlocking in class AbstractSelectableChannelIOExceptionpublic RawSocket getRawSocket()
Copyright © 2014. All rights reserved.