public class SelDatagramChannel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DatagramChannel |
channel |
| Modifier | Constructor and Description |
|---|---|
protected |
SelDatagramChannel(DatagramChannel channel,
DatagramListener datagramListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static SelDatagramChannel |
open(DatagramListener datagramListener,
SocketAddress localAddress) |
int |
send(ByteBuffer src,
SocketAddress target) |
void |
setDatagramListener(DatagramListener listener) |
protected final DatagramChannel channel
protected SelDatagramChannel(DatagramChannel channel, DatagramListener datagramListener)
public static SelDatagramChannel open(DatagramListener datagramListener, SocketAddress localAddress) throws IOException
IOExceptionpublic int send(ByteBuffer src, SocketAddress target) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void setDatagramListener(DatagramListener listener)
Copyright © 2021. All rights reserved.