michael-simons / native-netty-timeserver-and-client

Simple Netty based time server and client that can be natively compiled on GraalVM.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Netty native binary.

This is the time server example from Netty together with the minimum necessary substitutions to create native images on GraalVM plus a build file that configures Graals native-image tool for you.

Build and run

You need Maven, GraalVM and GraalVMs native image tool for this to work.

Build native images:

./mvnw clean package

Run the time server on port 4711:

./target/server 4711

Run the client in a different shell to get the time from the server:

./target/client localhost 4711

About

Simple Netty based time server and client that can be natively compiled on GraalVM.


Languages

Language:Java 100.0%