bc941269f0
- Smaller gradle scripts. - More structure in sample projects. - Simplified build/run. - Added gradle to the rest two samples. - Almost removed all sh scripts. - Gradle now works only inside of build directory. - Fixed READMEs according to the new changes.
523 B
523 B
Sockets demo
To build use ../gradlew build or ./build.sh.
Run the server:
../gradlew run
To change run arguments, change property runArgs in gradle.propeties file
or pass -PrunArgs="3000" to gradle run.
Alternatively you can run artifact directly
./build/konan/bin/EchoServer/EchoServer.kexe 3000 &
Test the server by conecting to it, for example with telnet:
telnet localhost 3000
Write something to console and watch server echoing it back.
Quit telnet by pressing ctrl+] ctrl+D