Module org.newsclub.net.unix.darwin
Class AFSYSTEMSocketPair<T extends org.newsclub.net.unix.AFSomeSocket>
java.lang.Object
org.newsclub.net.unix.CloseablePair<T>
org.newsclub.net.unix.AFSocketPair<T>
org.newsclub.net.unix.darwin.system.AFSYSTEMSocketPair<T>
- Type Parameters:
T
- The socket type.
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class AFSYSTEMSocketPair<T extends org.newsclub.net.unix.AFSomeSocket>
extends org.newsclub.net.unix.AFSocketPair<T>
A pair of sockets.
- Author:
- Christian Kohlschütter
-
Method Summary
Modifier and TypeMethodDescriptionopen()
Opens a socket pair of interconnected channels.Opens a socket pair of interconnected datagram channels.Methods inherited from class org.newsclub.net.unix.AFSocketPair
getSocket1, getSocket2
Methods inherited from class org.newsclub.net.unix.CloseablePair
close, getFirst, getSecond
-
Method Details
-
open
Opens a socket pair of interconnected channels.- Returns:
- The new channel pair.
- Throws:
IOException
- on error.
-
openDatagram
Opens a socket pair of interconnected datagram channels.- Returns:
- The new channel pair.
- Throws:
IOException
- on error.
-