December 2015
Intermediate to advanced
292 pages
6h 16m
English
The underlying socket implementation for the socket classes can be configured. The options available are dependent on the socket type. Frequently, the actual mechanism used to support an option is OS-specific. Also, sometimes the option is just a hint to the underlying implementation.
The options available for each socket class shown next is adapted from the Java API documentation:
|
Class |
Option name |
Description |
|---|---|---|
|
|
|
This is the size of the socket send buffer |
|
|
This is the size of the socket receive buffer | |
|
|
This keeps the connection alive | |
|
|
This re-uses the address | |
|
|
This lingers on close if data is present (when configured in blocking mode ... |
Read now
Unlock full access