/native-netty-timeserver-and-client

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

Primary LanguageJava

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