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