This is a simple command line tool for interop.

See INTEROP.md on how to use it.
This commit is contained in:
Alexander Gorshenev
2017-03-03 16:07:57 +03:00
committed by alexander-gorshenev
parent 62e678a37a
commit a995fbcb59
6 changed files with 217 additions and 45 deletions
+25
View File
@@ -0,0 +1,25 @@
# An example of interop tool use #
Build the dependencies and the compiler (see README.md).
Prepare stubs for the system sockets library:
./dist/bin/interop -def:backend.native/tests/interop/basics/sockets.def
Compile the echo server:
./dist/bin/konanc backend.native/tests/interop/basics/echo_server.kt \
sockets -nativelibrary socketsstubs.bc
Run the server:
./program.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~~