java.lang.Object
javax.net.SocketFactory
org.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFTIPCSocketAddress>
org.newsclub.net.unix.tipc.AFTIPCSocketFactory
- All Implemented Interfaces:
org.newsclub.net.unix.AFSocketAddressFromHostname<org.newsclub.net.unix.AFTIPCSocketAddress>
- Direct Known Subclasses:
AFTIPCSocketFactory.ServiceAddress
public abstract class AFTIPCSocketFactory
extends org.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFTIPCSocketAddress>
The base for a SocketFactory that connects to TIPC sockets.
Typically, the "hostname" is used as a reference to a socketFile on the file system. The actual
mapping is left to the implementor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAlways connects sockets to the given TIPC type and instance.Nested classes/interfaces inherited from class org.newsclub.net.unix.AFSocketFactory
org.newsclub.net.unix.AFSocketFactory.FixedAddressSocketFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AFTIPCSocketconfigure(AFTIPCSocket sock) Performs some optional configuration on a newly created socket.protected final AFTIPCSocketconnectTo(org.newsclub.net.unix.AFTIPCSocketAddress addr) final SocketMethods inherited from class org.newsclub.net.unix.AFSocketFactory
createSocket, createSocket, createSocket, createSocket, isInetAddressSupportedMethods inherited from class javax.net.SocketFactory
getDefaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.newsclub.net.unix.AFSocketAddressFromHostname
addressFromHost, isHostnameSupported
-
Constructor Details
-
AFTIPCSocketFactory
protected AFTIPCSocketFactory()Creates aAFTIPCSocketFactory.
-
-
Method Details
-
createSocket
- Specified by:
createSocketin classorg.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFTIPCSocketAddress>- Throws:
SocketException
-
connectTo
protected final AFTIPCSocket connectTo(org.newsclub.net.unix.AFTIPCSocketAddress addr) throws IOException - Specified by:
connectToin classorg.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFTIPCSocketAddress>- Throws:
IOException
-
configure
Performs some optional configuration on a newly created socket.- Parameters:
sock- The socket.- Returns:
- The very socket.
- Throws:
SocketException- on error.
-