@@ -5,10 +5,10 @@ import im.tox.tox4j.crypto.ToxCryptoConstants
55object ToxCoreConstants {
66
77 /* * The size of a Tox Public Key in bytes. */
8- val PublicKeySize = ToxCryptoConstants .PublicKeyLength
8+ const val PublicKeySize = ToxCryptoConstants .PublicKeyLength
99
1010 /* * The size of a Tox Secret Key in bytes. */
11- val SecretKeySize = ToxCryptoConstants .SecretKeyLength
11+ const val SecretKeySize = ToxCryptoConstants .SecretKeyLength
1212
1313 /* *
1414 * The size of a Tox address in bytes. Tox addresses are in the format
@@ -18,34 +18,34 @@ object ToxCoreConstants {
1818 * all the odd bytes, the second byte is an XOR of all the even bytes of the Public Key and
1919 * nospam.
2020 */
21- val AddressSize = PublicKeySize + 4 + 2
21+ const val AddressSize = PublicKeySize + 4 + 2
2222
2323 /* * Maximum length of a nickname in bytes. */
24- val MaxNameLength = 128
24+ const val MaxNameLength = 128
2525
2626 /* * Maximum length of a status message in bytes. */
27- val MaxStatusMessageLength = 1007
27+ const val MaxStatusMessageLength = 1007
2828
2929 /* * Maximum length of a friend request message in bytes. */
30- val MaxFriendRequestLength = 1016
30+ const val MaxFriendRequestLength = 1016
3131
3232 /* * Maximum length of a single message after which it should be split. */
33- val MaxMessageLength = 1372
33+ const val MaxMessageLength = 1372
3434
3535 /* * Maximum size of custom packets. */
36- val MaxCustomPacketSize = 1373
36+ const val MaxCustomPacketSize = 1373
3737
3838 /* * Maximum file name length for file transfers. */
39- val MaxFilenameLength = 255
39+ const val MaxFilenameLength = 255
4040
4141 /* *
4242 * Maximum hostname length. This is determined by calling `getconf HOST_NAME_MAX` on the console.
4343 * The value presented here is valid for most systems.
4444 */
45- val MaxHostnameLength = 255
45+ const val MaxHostnameLength = 255
4646
4747 /* * The number of bytes in a file id. */
48- val FileIdLength = ToxCryptoConstants .HashLength
48+ const val FileIdLength = ToxCryptoConstants .HashLength
4949
5050 /* * Default port for HTTP proxies. */
5151 val DefaultProxyPort = 8080 .toUShort()
0 commit comments