https://github.com/telkomdev/poppy
Concurrent TCP Server with Kotlin and Coroutines
https://github.com/telkomdev/poppy
kotlin tcp tcp-server
Last synced: 8 months ago
JSON representation
Concurrent TCP Server with Kotlin and Coroutines
- Host: GitHub
- URL: https://github.com/telkomdev/poppy
- Owner: telkomdev
- Created: 2019-10-02T02:04:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-20T22:43:18.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T20:19:08.090Z (about 1 year ago)
- Topics: kotlin, tcp, tcp-server
- Language: Kotlin
- Size: 686 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Concurrent TCP Server with Kotlin and Coroutines
#### Getting started
- clone project
```shell
$ git clone https://github.com/telkomdev/Poppy.git
```
- build and download dependencies
```shell
$ mvn clean package
```
- Run
```shell
$ PORT=9000 QUEUE_SIZE=100 java -jar target/Poppy-1.0-SNAPSHOT-jar-with-dependencies.jar
```
- Client using `nc`
```shell
$ nc localhost 9000
$ hello
```
### Docker
```
$ make build
```
Run
```
$ docker run --rm -p 9000:9000 --env PORT=9000 --env QUEUE_SIZE=100 poppy
```
Test it
```
$ docker exec -it CONTAINER_ID nc localhost:9000
$ hello
```