Skip to content
/ jnng Public

JVM languages wrapper using JNI for nng

License

Notifications You must be signed in to change notification settings

wooruang/jnng

Repository files navigation

JNNG (JVM-Nanomsg-Next-Generation)

This project is a wrapper of nng(nanomsg-next-generation) by using JNI for JVM

How to build.

This project support MacOS. (Not Linux and Windows yet.)

Prerequirements.

  • curl
  • cmake

1. Clone a repository.

$ git clone --recurse-submodules https://github.com/wooruang/jnng.git

If you have already run the 'clone' command, follow the commands below.

$ git submodule init 
$ git submodule update 

2. Build.

$ ./gradlew build

3. Publish (To local repository for ivy2).

$ ./gradlew publish

Test as Server/Client

1. Execute a server for test.

$ ./gradlew go-server -Purl="{protocol}://{ip}:{port}"

example
$ ./gradlew go-server -Purl="tcp://127.0.0.1:5050"

2. Execute a client for test.

$ ./gradlew go-client -Purl="{protocol}://{ip}:{port}"

example
$ ./gradlew go-client -Purl="tcp://127.0.0.1:5050"