Module org.newsclub.net.unix.darwin
Class AFSYSTEMSocketFactory
java.lang.Object
javax.net.SocketFactory
org.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFSYSTEMSocketAddress>
org.newsclub.net.unix.darwin.system.AFSYSTEMSocketFactory
- All Implemented Interfaces:
org.newsclub.net.unix.AFSocketAddressFromHostname<org.newsclub.net.unix.AFSYSTEMSocketAddress>
public abstract class AFSYSTEMSocketFactory
extends org.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFSYSTEMSocketAddress>
The base for a SocketFactory that connects to AF_SYSTEM sockets.
-
Nested Class Summary
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 AFSYSTEMSocketconfigure(AFSYSTEMSocket sock) Performs some optional configuration on a newly created socket.protected final AFSYSTEMSocketconnectTo(org.newsclub.net.unix.AFSYSTEMSocketAddress 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
-
AFSYSTEMSocketFactory
protected AFSYSTEMSocketFactory()Creates aAFSYSTEMSocketFactory.
-
-
Method Details
-
createSocket
- Specified by:
createSocketin classorg.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFSYSTEMSocketAddress>- Throws:
SocketException
-
connectTo
protected final AFSYSTEMSocket connectTo(org.newsclub.net.unix.AFSYSTEMSocketAddress addr) throws IOException - Specified by:
connectToin classorg.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFSYSTEMSocketAddress>- Throws:
IOException
-
configure
Performs some optional configuration on a newly created socket.- Parameters:
sock- The socket.- Returns:
- The very socket.
- Throws:
SocketException- on error.
-