Skip to content

FredrickB/kotlin-network-cli-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kotlin network cli proof of concept

This is a simple proof of concept for testing kscript and coroutines.

Simply finds all network interfaces on the host and attempts to ping each host on subnet with range /24.

The networking portion of the code is a best-case effort due to the underlying implementation of the networking libraries. It works ok enough for a proof of concept, but don't use it for anything serious.

Development

Setup environment

Assuming you already have sdkman installed:

  1. sdk install kotlin
  2. sdk install kscript

Running the project

kscript App.kts

Setting up IDEA

kscript --idea App.kts

Annotation support

Including screenshot since I had some troubles with this initially. "kscript-annotations" on the bottom is what is necessary, the rest are added within the script files themselves or by kscript.

idea project setup

About

Simple proof of concept for testing kscript and coroutines.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages