jnano
jnano copied to clipboard
A Java binding for nanomsg
hi Gonzalo Diethelm: thanks for you greate job!have a question can jnano communicate with https://github.com/nanomsg/nng ? regard !
I'm writing a program that cannot afford including extra DLLs. As of now I see that java expects the jnano DLL to be present at runtime. How can I build...
run against ant -lib lib/ant/cpptasks-1.0b5.jar -Dcn=org.nanomsg.remote_thr -Dargs="tcp://127.0.0.1:6789 100 100000" perf but seems not working .... jni.geno.unix: [cpptasks:cc] Starting dependency analysis for 1 files. [cpptasks:cc] 1 files are up to date....
Something similar to the following code inside of `Java_org_nanomsg_NanoLibrary_nn_1recv` is required: ``` jclass cls = env->GetObjectClass(buffer); jmethodID limit_mid = env->GetMethodID(cls, "limit", "(I)Ljava/nio/Buffer;"); char *buf = (char*)env->GetDirectBufferAddress(buffer); jlong capacity = env->GetDirectBufferCapacity(buffer);...
Having to compile the JNI layer is a major deployment obstacle, especially for external customer sites (where often we do not even have proper permissions, etc). Would you consider doing...