Module org.newsclub.net.unix.tipc
Package org.newsclub.net.unix.tipc
Class AFTIPCSocketPair<T extends AFSomeSocket>
java.lang.Object
org.newsclub.net.unix.CloseablePair<T>
org.newsclub.net.unix.AFSocketPair<T>
org.newsclub.net.unix.tipc.AFTIPCSocketPair<T>
- Type Parameters:
T
- The socket type.
- All Implemented Interfaces:
Closeable
,AutoCloseable
A pair of sockets.
- Author:
- Christian Kohlschütter
-
Method Summary
Modifier and TypeMethodDescriptionstatic AFTIPCSocketPair
<AFTIPCSocketChannel> open()
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.
-