public final class StructLinger extends Object
struct linger from
<sys/socket.h>| Modifier and Type | Field and Description |
|---|---|
int |
l_linger
Linger time in seconds.
|
int |
l_onoff
Whether or not linger is enabled.
|
| Constructor and Description |
|---|
StructLinger(int l_onoff,
int l_linger) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOn() |
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
public final int l_onoff
public final int l_linger
public boolean isOn()
public String toString()
ObjectgetClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.