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 to A or AFSocketAddress 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

    Modifier and Type
    Method
    Description
    AFSocket<? extends T>
    connect(A addr)
    Connect to the socket at the given address.
  • Method Details

    • connect

      AFSocket<? extends T> connect(A addr) throws IOException
      Connect to the socket at the given address.
      Parameters:
      addr - The address to connect to.
      Returns:
      The connected socket.
      Throws:
      IOException - on error.