Top Description Methods
org.newsclub.net.unix

public Interface AFServerSocketConnector<A extends AFSocketAddress, T extends AFSocketAddress>

Type Parameters
<A>
The address type to bind to.
<T>
The address type for the returned server 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 create AFServerSockets bound to a given AFSocketAddress.
Author
Christian Kohlschütter
See Also
AFSocketConnector

Method Summary

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

Returns:

The bound socket.
bind
(A
The address to bind to.
addr
)

Creates an AFServerSocket bound to the given address.

Method Detail

bindback to summary
public AFServerSocket<? extends T> bind(A addr) throws IOException

Creates an AFServerSocket bound to the given address.

Parameters
addr:A

The address to bind to.

Returns:AFServerSocket<? extends T>

The bound socket.

Exceptions
IOException:
on error.