Package com.sshtools.synergy.nio
Class ListeningInterface
java.lang.Object
com.sshtools.synergy.nio.ListeningInterface
Represents a listening interface for incoming socket connections.
-
Constructor Summary
ConstructorsConstructorDescriptionListeningInterface(InetSocketAddress addressToBind, ProtocolContextFactory<?> context) ListeningInterface(InetSocketAddress addressToBind, ProtocolContextFactory<?> context, int backlog) -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanbooleanvoidsetActualPort(int actualPort) voidsetBacklog(int backlog) voidsetSocketOptionReuseAddress(boolean reuseAddress)
-
Constructor Details
-
ListeningInterface
-
ListeningInterface
public ListeningInterface(InetSocketAddress addressToBind, ProtocolContextFactory<?> context, int backlog)
-
-
Method Details
-
getActualPort
public int getActualPort() -
setActualPort
public void setActualPort(int actualPort) -
getAddressToBind
-
getContextFactory
-
isIPV6Interface
public boolean isIPV6Interface() -
getBacklog
public int getBacklog() -
setBacklog
public void setBacklog(int backlog) -
getSocketOptionReuseAddress
public boolean getSocketOptionReuseAddress() -
setSocketOptionReuseAddress
public void setSocketOptionReuseAddress(boolean reuseAddress)
-