JNIEXPORT jlong JNICALL Java_org_zeromq_czmq_Zsock__1_1newGather (JNIEnv *env, jclass c, jstring endpoint) { char *endpoint_ = (char *) (*env)->GetStringUTFChars (env, endpoint, NULL); jlong new_gather_ = (jlong) (intptr_t) zsock_new_gather (endpoint_); (*env)->ReleaseStringUTFChars (env, endpoint, endpoint_); return new_gather_; }
/// // Create a GATHER socket. Default action is bind. QZsock* QZsock::newGather (const QString &endpoint, QObject *qObjParent) { return new QZsock (zsock_new_gather (endpoint.toUtf8().data()), qObjParent); }