public class ServiceDaemon.SocketMonitor extends Object
| Constructor and Description |
|---|
SocketMonitor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLocalPort() |
int |
getReceiveBufferSize() |
boolean |
getReuseAddress() |
int |
getSoTimeout() |
boolean |
isBound() |
boolean |
isClosed() |
void |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
void |
setReceiveBufferSize(int size) |
void |
setReuseAddress(boolean on) |
void |
setSoTimeout(int timeout) |
public int getLocalPort()
public boolean getReuseAddress()
throws SocketException
SocketExceptionpublic int getSoTimeout()
throws IOException
IOExceptionpublic boolean isClosed()
public boolean isBound()
public int getReceiveBufferSize()
throws SocketException
SocketExceptionpublic void setReceiveBufferSize(int size)
throws SocketException
SocketExceptionpublic void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
public void setReuseAddress(boolean on)
throws SocketException
SocketExceptionpublic void setSoTimeout(int timeout)
throws SocketException
SocketExceptionCopyright © 1999–2019 The Apache Software Foundation. All rights reserved.