JNIEXPORT void JNICALL
Java_org_zeromq_czmq_Zsock__1_1setCurvePublickeyBin (JNIEnv *env, jclass c, jlong self, jbyteArray curve_publickey)
{
    jbyte *curve_publickey_ = (byte *) (*env)->GetByteArrayElements (env, curve_publickey, 0);
    zsock_set_curve_publickey_bin ((zsock_t *) (intptr_t) self, curve_publickey_);
    (*env)->ReleaseByteArrayElements (env, curve_publickey, (jbyte *) curve_publickey_, 0);
}
Beispiel #2
0
///
//  Set socket option `curve_publickey` from 32-octet binary
void QZsock::setCurvePublickeyBin (const byte *curvePublickey)
{
    zsock_set_curve_publickey_bin (self, curvePublickey);
    
}