Files
kotlin-fork/samples/socket/README.md
T
Alexander Podkhalyuzin bc941269f0 Fixed samples for the latest changes in Gradle plugin.
- 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.
2017-06-08 17:21:04 +03:00

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