Module org.newsclub.net.unix
Package org.newsclub.net.unix
Interface AFSocketConnector<A extends AFSocketAddress,T extends AFSocketAddress>
- Type Parameters:
A
- The address type to connect to.T
- The address type for the returned socket (which should either be identical toA
orAFSocketAddress
to indicate that this could be any socket).
public interface AFSocketConnector<A extends AFSocketAddress,T extends AFSocketAddress>
Some connector that is able to connect to a given
AFSocketAddress
.- Author:
- Christian Kohlschütter
- See Also:
-
Method Summary
-
Method Details
-
connect
Connect to the socket at the given address.- Parameters:
addr
- The address to connect to.- Returns:
- The connected socket.
- Throws:
IOException
- on error.
-