public class DNSServerSettings extends SocketServerSettings
| Modifier and Type | Field and Description |
|---|---|
static int |
DAFAULT_MAX_REQUEST_SIZE |
| Constructor and Description |
|---|
DNSServerSettings()
Create default DNS server settings
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBindAddress()
Gets the IP4 addresses that the server will be bound to.
|
int |
getMaxRequestSize()
Gets the maximum size in bytes of a request.
|
int |
getPort()
Gets the IP port that the server will be listening on.
|
void |
setBindAddress(String bindAddress)
Sets the IP4 addresses that the server will be bound to.
|
void |
setMaxRequestSize(int maxRequestSize)
Sets the maximum size in bytes of a request.
|
void |
setPort(int port)
Sets the IP port that the server will be listening on.
|
getMaxActiveRequests, getMaxConnectionBacklog, getMaxOutstandingAccepts, getReadBufferSize, getReceiveTimeout, getSendTimeout, getSocketCloseTimeout, setMaxActiveRequests, setMaxConnectionBacklog, setMaxOutstandingAccepts, setReadBufferSize, setReceiveTimeout, setSendTimeout, setSocketCloseTimeoutpublic static final int DAFAULT_MAX_REQUEST_SIZE
public int getPort()
public void setPort(int port)
port - The IP port that the server will be listening on.public String getBindAddress()
public void setBindAddress(String bindAddress)
bindAddress - The IP4 addresses that the server will be bound to.public int getMaxRequestSize()
public void setMaxRequestSize(int maxRequestSize)
maxRequestSize - The maximum size in bytes of a request.Copyright © 2010-2015 The Direct Project. All Rights Reserved.