Top Description Methods
org.newsclub.net.unix

public 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).
Imports
java.io.IOException

Some connector that is able to connect to a given AFSocketAddress.
Author
Christian Kohlschütter
See Also
AFServerSocketConnector

Method Summary

Modifier and TypeMethod and Description
public AFSocket<? extends T>

Returns:

The connected socket.
connect
(A
The address to connect to.
addr
)

Connect to the socket at the given address.

Method Detail

connectback to summary
public AFSocket<? extends T> connect(A addr) throws IOException

Connect to the socket at the given address.

Parameters
addr:A

The address to connect to.

Returns:AFSocket<? extends T>

The connected socket.

Exceptions
IOException:
on error.