JNIEXPORT jint JNICALL Java_org_zeromq_czmq_Zsock__1_1disconnect (JNIEnv *env, jclass c, jlong self, jstring format) { char *format_ = (char *) (*env)->GetStringUTFChars (env, format, NULL); jint disconnect_ = (jint) zsock_disconnect ((zsock_t *) (intptr_t) self, "%s", format_); (*env)->ReleaseStringUTFChars (env, format, format_); return disconnect_; }
/// // Disconnect a socket from a formatted endpoint // Returns 0 if OK, -1 if the endpoint was invalid or the function // isn't supported. int QZsock::disconnect (const QString ¶m) { int rv = zsock_disconnect (self, "%s", param.toUtf8().data()); return rv; }
Z K2(zsockdisconnect){PC(x); TC(y,-KS); R kj(zsock_disconnect(VSK(x),ys));}
/// // Disconnect a socket from a formatted endpoint // Returns 0 if OK, -1 if the endpoint was invalid or the function // isn't supported. int QmlZsock::disconnect (const QString &format) { return zsock_disconnect (self, "%s", format.toUtf8().data()); };