Module org.newsclub.net.unix
Package org.newsclub.net.unix
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 toAorAFSocketAddressto indicate that this could be any socket).
public interface AFServerSocketConnector<A extends AFSocketAddress,T extends AFSocketAddress>
Some connector that is able to create
AFServerSockets bound to a given
AFSocketAddress.- Author:
- Christian Kohlschütter
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAFServerSocket<? extends T> Creates anAFServerSocketbound to the given address.
-
Method Details
-
bind
Creates anAFServerSocketbound to the given address.- Parameters:
addr- The address to bind to.- Returns:
- The bound socket.
- Throws:
IOException- on error.
-