otakusenpai
10/08/2018, 4:10 PMsocket = aSocket(ActorSelectorManager(ioCoroutineDispatcher)).tcp().connect(InetSocketAddress(address,port)).tls()
Deactivated User
10/08/2018, 4:11 PMio.ktor:ktor-network-tls:$ktor_version
Deactivated User
10/08/2018, 4:11 PMDeactivated User
10/08/2018, 4:12 PMotakusenpai
10/08/2018, 4:13 PMdependencies {
compile project(':commonUtils')
compile "io.ktor:ktor-server-netty:$ktor_version"
compile "io.ktor:ktor-network:$ktor_version"
compile "io.ktor:ktor-network-tls:$ktor_version"
}
otakusenpai
10/08/2018, 4:13 PMDeactivated User
10/08/2018, 4:13 PMotakusenpai
10/08/2018, 4:14 PMotakusenpai
10/08/2018, 4:14 PMimport com.github.otakusenpai.aghora.commonUtils.error.AghoraException
import io.ktor.network.selector.ActorSelectorManager
import io.ktor.network.sockets.aSocket
import io.ktor.network.sockets.openReadChannel
import io.ktor.network.sockets.openWriteChannel
import io.ktor.network.util.ioCoroutineDispatcher
import kotlinx.coroutines.experimental.async
import kotlinx.coroutines.experimental.runBlocking
import kotlinx.io.charsets.Charset
import kotlinx.io.charsets.MalformedInputException
import java.net.InetSocketAddress
import java.nio.ByteBuffer
otakusenpai
10/08/2018, 4:15 PMDeactivated User
10/08/2018, 4:15 PM*
imports insteadotakusenpai
10/08/2018, 4:15 PMDeactivated User
10/08/2018, 4:15 PMotakusenpai
10/08/2018, 4:15 PMDeactivated User
10/08/2018, 4:16 PMDeactivated User
10/08/2018, 4:16 PMDeactivated User
10/08/2018, 4:16 PMotakusenpai
10/08/2018, 4:17 PMotakusenpai
10/08/2018, 4:17 PMDeactivated User
10/08/2018, 4:17 PMDeactivated User
10/08/2018, 4:17 PMotakusenpai
10/08/2018, 4:18 PMDeactivated User
10/08/2018, 4:18 PMotakusenpai
10/08/2018, 4:18 PMotakusenpai
10/08/2018, 4:19 PMotakusenpai
10/08/2018, 4:38 PMotakusenpai
10/08/2018, 4:52 PMDeactivated User
10/08/2018, 4:53 PMotakusenpai
10/08/2018, 4:53 PMotakusenpai
10/08/2018, 4:54 PMDeactivated User
10/08/2018, 4:54 PMDeactivated User
10/08/2018, 4:54 PMDeactivated User
10/08/2018, 4:54 PMDeactivated User
10/08/2018, 5:06 PMmaven { url "<https://dl.bintray.com/kotlin/kotlin-eap>" }
to resolve some stuff. Why? Not investigated. But in some places kotlinx-stdlib-common:1.3.0-rc-131
is referenced and it is in that repo.Deactivated User
10/08/2018, 5:07 PMDeactivated User
10/08/2018, 5:07 PMDeactivated User
10/08/2018, 5:07 PMDeactivated User
10/08/2018, 5:08 PMDeactivated User
10/08/2018, 5:09 PMaSocket
callotakusenpai
10/08/2018, 5:10 PMDeactivated User
10/08/2018, 5:12 PMotakusenpai
10/08/2018, 5:13 PMDeactivated User
10/08/2018, 5:13 PMallprojects.repositories {
maven { url "<https://dl.bintray.com/kotlin/kotlin-eap>" }
}
+ change some '
to "
where you are using interpolated variables like $version
otakusenpai
10/08/2018, 5:15 PMDeactivated User
10/08/2018, 5:16 PMotakusenpai
10/08/2018, 5:16 PMDeactivated User
10/08/2018, 5:16 PMotakusenpai
10/08/2018, 5:17 PMotakusenpai
10/08/2018, 5:17 PMotakusenpai
10/08/2018, 5:24 PMotakusenpai
10/08/2018, 5:29 PMotakusenpai
10/08/2018, 5:30 PMDeactivated User
10/08/2018, 5:45 PMCode -> Reformat Code
before making the PRotakusenpai
10/08/2018, 8:29 PMotakusenpai
10/08/2018, 8:30 PMDeactivated User
10/09/2018, 12:05 AM