Class AFTIPCSocketFactory.ServiceAddress
java.lang.Object
javax.net.SocketFactory
org.newsclub.net.unix.AFSocketFactory<org.newsclub.net.unix.AFTIPCSocketAddress>
org.newsclub.net.unix.tipc.AFTIPCSocketFactory
org.newsclub.net.unix.tipc.AFTIPCSocketFactory.ServiceAddress
- All Implemented Interfaces:
org.newsclub.net.unix.AFSocketAddressFromHostname<org.newsclub.net.unix.AFTIPCSocketAddress>
- Enclosing class:
AFTIPCSocketFactory
Always connects sockets to the given TIPC type and instance.
- Author:
- Christian Kohlschütter
-
Nested Class Summary
Nested classes/interfaces inherited from class AFTIPCSocketFactory
AFTIPCSocketFactory.ServiceAddressModifier 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
ConstructorsConstructorDescriptionServiceAddress(int type, int instance) Creates anAFTIPCSocketFactorythat always uses the given TIPC service type and instance, implying cluster scope. -
Method Summary
Modifier and TypeMethodDescriptionfinal org.newsclub.net.unix.AFTIPCSocketAddressaddressFromHost(String host, int port) Methods inherited from class AFTIPCSocketFactory
configure, connectTo, createSocketModifier 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 SocketFactory
getDefaultMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.newsclub.net.unix.AFSocketAddressFromHostname
isHostnameSupported
-
Constructor Details
-
ServiceAddress
public ServiceAddress(int type, int instance) Creates anAFTIPCSocketFactorythat always uses the given TIPC service type and instance, implying cluster scope.- Parameters:
type- The service type.instance- The service instance.
-
-
Method Details
-
addressFromHost
public final org.newsclub.net.unix.AFTIPCSocketAddress addressFromHost(String host, int port) throws SocketException - Throws:
SocketException
-