https://github.com/corneil/socket-server
Simple Socket Server in Kotlin on JVM
https://github.com/corneil/socket-server
kotlin socket-programming
Last synced: about 1 month ago
JSON representation
Simple Socket Server in Kotlin on JVM
- Host: GitHub
- URL: https://github.com/corneil/socket-server
- Owner: corneil
- Created: 2023-03-20T12:09:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T12:35:59.000Z (over 3 years ago)
- Last Synced: 2025-03-09T15:56:47.600Z (over 1 year ago)
- Topics: kotlin, socket-programming
- Language: Kotlin
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Socket Server
## Build
This will build an application jar and a native version using GraalVM
```shell
./gradlew build nativeCompile
```
Remove nativeCompile if you don't have GraalVM installed or don't require a native image.
## Execute
The default value for _**port**_ is 9000
## Application Jar
```shell
java -jar ./build/libs/socket-server-1.0-SNAPSHOT.jar [port]
```
## Distribution
Expand `build/distributions/socket-server-1.0-SNAPSHOT.zip` or `build/distributions/socket-server-1.0-SNAPSHOT.tar`
```shell
cd build/distributions
unzip socket-server-1.0-SNAPSHOT.zip
cd socket-server-1.0-SNAPSHOT/bin
./socket-server [port]
```
## Native
```shell
./build/native/nativeCompile/socket-server [port]
```