Package sfs3.client
Class ConfigData
java.lang.Object
sfs3.client.ConfigData
ConfigData contains all the settings for the connection. It must be passed to the
SmartFox class to initiate a connection
to the Server.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanAllows to test locally with the default, self-signed SSL/TLS certificate, skipping the validation of the certificate.Settings to configure the HTTP tunnel, used when a TCP connection cannot be establishedThe host to connect tointThe HTTP port to be used for HTTP callsintThe HTTPS port to be used for HTTP callssfs3.client.util.NetDebugLevelDebug settings to show more information about the data exchange between client and server OFF: no extra info logged PACKET: additional packet hex dump is logged PROTOCOL: as above, plus each request/response structure is also dumpedintThe TCP port used for the connectionintThe amount of time (in milliseconds) after which the client should give up if there's no response from the server sideintThe UDP port used for a UDP connectionbooleanEnables protocol encryption.booleanWhen sending data via UDP, if the UDP connection failed, it will use TCP insteadbooleanToggles the Nagle algorithm for the TCP connection More on this here: https://en.wikipedia.org/wiki/Nagle's_algorithmThe name of the Zone to connect to -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
host
The host to connect to -
port
public int portThe TCP port used for the connection -
udpPort
public int udpPortThe UDP port used for a UDP connection -
httpPort
public int httpPortThe HTTP port to be used for HTTP calls -
httpsPort
public int httpsPortThe HTTPS port to be used for HTTP calls -
tcpConnectionTimeout
public int tcpConnectionTimeoutThe amount of time (in milliseconds) after which the client should give up if there's no response from the server side -
zone
The name of the Zone to connect to -
blueBox
Settings to configure the HTTP tunnel, used when a TCP connection cannot be established -
netDebugLevel
public sfs3.client.util.NetDebugLevel netDebugLevelDebug settings to show more information about the data exchange between client and server- OFF: no extra info logged
- PACKET: additional packet hex dump is logged
- PROTOCOL: as above, plus each request/response structure is also dumped
-
useSSL
public boolean useSSLEnables protocol encryption. This requires that the server is configured accordingly and a valid SSL/TLS certificate is installed For more details check the online documentation, under Getting Started > Configuring TLS/SSL -
allowUnsafeSSL
public boolean allowUnsafeSSLAllows to test locally with the default, self-signed SSL/TLS certificate, skipping the validation of the certificate. -
useTcpFallback
public boolean useTcpFallbackWhen sending data via UDP, if the UDP connection failed, it will use TCP instead -
useTcpNoDelay
public boolean useTcpNoDelayToggles the Nagle algorithm for the TCP connection More on this here: https://en.wikipedia.org/wiki/Nagle's_algorithm
-
-
Constructor Details
-
ConfigData
public ConfigData()
-