| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AFSocketPair(T
The first socket. a, T The second socket. b, Closeable Some closeable that is also closed upon alsoClose)close(), or null.Creates a socket pair. |
| Modifier and Type | Method and Description |
|---|---|
| public final @NonNull T | |
| public final @NonNull T |
| AFSocketPair | back to summary |
|---|---|
| protected AFSocketPair(T a, T b) Creates a socket pair.
| |
| AFSocketPair | back to summary |
|---|---|
| protected AFSocketPair(T a, T b, Closeable alsoClose) Creates a socket pair. | |
| getSocket1 | back to summary |
|---|---|
| public final @NonNull T getSocket1() Returns the first socket of the pair.
| |
| getSocket2 | back to summary |
|---|---|
| public final @NonNull T getSocket2() Returns the second socket of the pair.
| |