Class DittoTcpListenConfig
java.lang.Object
com.ditto.java.transports.DittoTcpListenConfig
Configuration for listening on a TCP socket to accept incoming sync connections.
This is an advanced server-like configuration for specific use cases. Most applications
should use peer-to-peer transports or connect to existing servers instead.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for constructing aDittoTcpListenConfig. -
Method Summary
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether TCP listening is enabled.- Returns:
trueif TCP listen is enabled,falseotherwise.
-
getInterfaceIp
Returns the network interface IP address to bind to.- Returns:
- the interface IP address string.
-
getPort
public int getPort()Returns the TCP port number to listen on.- Returns:
- the port number.
-
hashCode
-
equals
-
toString
-