diff --git a/WitchQueen/android/AndroidManifest.xml b/WitchQueen/android/AndroidManifest.xml index 4cdf963..f49e9f3 100644 --- a/WitchQueen/android/AndroidManifest.xml +++ b/WitchQueen/android/AndroidManifest.xml @@ -2,6 +2,7 @@ + = setOf() <-- HashSet? + + //val localPlayer: Player = <-- Should be local player. Has all their items etc. + //val lobby: MutableList = listOf(localPlayer) <-- Limit to lobby size (2)? + + val serverSocket = Gdx.net.newServerSocket( + Net.Protocol.TCP, + "127.0.0.1", + 2864, + null + ) + + val clientSocket = Gdx.net.newClientSocket( + Net.Protocol.TCP, + "127.0.0.1", // <- This should be other servers address + 2864, // <- This should be other servers port + null + ) + + val inputStream = clientSocket.inputStream + + private fun findLocalServer() { + Gdx.app.log("Lobby", "Finding local server...") + + } + + private fun replayHasLocalServer(remoteAddress: String, remotePort: Int) { + Gdx.app.log("Lobby", "Pinged by another client. Informing that we have an open lobby...") + } + + private fun connectToServer(ip: String, port: Int) { // String is the ideal type for ip because v6 uses letters too? + Gdx.app.log("Lobby", "Connecting to $ip on port $port...") + } +}