public final class DatagramSocketSettings extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
DEF_BOOL |
protected static byte |
FALSE |
protected static byte |
TRUE |
| Modifier and Type | Method and Description |
|---|---|
void |
applySettings(DatagramChannel channel) |
static DatagramSocketSettings |
create() |
boolean |
getBroadcast() |
MemSize |
getReceiveBufferSize() |
boolean |
getReuseAddress() |
MemSize |
getSendBufferSize() |
boolean |
hasBroadcast() |
boolean |
hasReceiveBufferSize() |
boolean |
hasReuseAddress() |
boolean |
hasSendBufferSize() |
DatagramSocketSettings |
withBroadcast(boolean broadcast) |
DatagramSocketSettings |
withReceiveBufferSize(MemSize receiveBufferSize) |
DatagramSocketSettings |
withReuseAddress(boolean reuseAddress) |
DatagramSocketSettings |
withSendBufferSize(MemSize sendBufferSize) |
protected static final byte DEF_BOOL
protected static final byte TRUE
protected static final byte FALSE
public static DatagramSocketSettings create()
public DatagramSocketSettings withReceiveBufferSize(MemSize receiveBufferSize)
public DatagramSocketSettings withSendBufferSize(MemSize sendBufferSize)
public DatagramSocketSettings withReuseAddress(boolean reuseAddress)
public DatagramSocketSettings withBroadcast(boolean broadcast)
public void applySettings(DatagramChannel channel) throws IOException
IOExceptionpublic boolean hasReceiveBufferSize()
public MemSize getReceiveBufferSize()
public boolean hasReuseAddress()
public boolean getReuseAddress()
public boolean hasSendBufferSize()
public MemSize getSendBufferSize()
public boolean hasBroadcast()
public boolean getBroadcast()
Copyright © 2019. All rights reserved.