コード例 #1
0
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_;
}
コード例 #2
0
ファイル: qzsock.cpp プロジェクト: jossgray/zyre
///
//  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);
}