Updated server address, improved documentation.

This commit is contained in:
Felix Ableitner 2016-01-24 13:44:49 +01:00
parent d3c2b5ee26
commit 3cbba72117
2 changed files with 6 additions and 5 deletions

View File

@ -14,16 +14,12 @@ object InternetInterface {
val Port = 26344 val Port = 26344
val BootstrapNodes = Set("192.168.1.104:26344", // T420 val BootstrapNodes = Set("192.168.1.104:26344", // T420
"46.101.229.4:26344") // digital ocean "46.101.249.188:26344") // digital ocean
} }
/** /**
* Handles all Internet connectivity. * Handles all Internet connectivity.
*
* TODO: send message through internet node: android -> server -> android
* TODO: send test reply to incoming messages
* TODO: send a list of all connected nodes when we connect to a node
*/ */
class InternetInterface(connectionHandler: ConnectionHandler, crypto: Crypto) class InternetInterface(connectionHandler: ConnectionHandler, crypto: Crypto)
extends TransmissionInterface { extends TransmissionInterface {

View File

@ -25,6 +25,11 @@ object Main extends App with CallbackInterface {
init() init()
/**
* Initializes the app, parses command line parameters.
*
* See build.gradle for information about passing command line parameters from gradle.
*/
private def init(): Unit = { private def init(): Unit = {
ConfigFolder.mkdirs() ConfigFolder.mkdirs()
KeyFolder.mkdirs() KeyFolder.mkdirs()