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 toAorAFSocketAddressto indicate that this could be any socket).
- All Known Implementing Classes:
AFVSOCKProxySocketConnector
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.
-