JNIEXPORT jlong JNICALL
Java_org_zeromq_czmq_Zsock__1_1newXsub (JNIEnv *env, jclass c, jstring endpoint)
{
    char *endpoint_ = (char *) (*env)->GetStringUTFChars (env, endpoint, NULL);
    jlong new_xsub_ = (jlong) (intptr_t) zsock_new_xsub (endpoint_);
    (*env)->ReleaseStringUTFChars (env, endpoint, endpoint_);
    return new_xsub_;
}
Beispiel #2
0
///
//  Create an XSUB socket. Default action is connect.
QZsock* QZsock::newXsub (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_xsub (endpoint.toUtf8().data()), qObjParent);
}
Beispiel #3
0
///
//  Create an XSUB socket. Default action is connect.
QmlZsock *QmlZsockAttached::constructXsub (const QString &endpoint) {
    QmlZsock *qmlSelf = new QmlZsock ();
    qmlSelf->self = zsock_new_xsub (endpoint.toUtf8().data());
    return qmlSelf;
};
Beispiel #4
0
Z K1(zsocknewxsub){R ptr(zsock_new_xsub(xs));}
Beispiel #5
0
///
//  Create an XSUB socket. Default action is connect.
QmlZsock *QmlZsockAttached::newXsub (const QString &endpoint) {
    QmlZsock *retQ_ = new QmlZsock ();
    retQ_->self = zsock_new_xsub (endpoint.toUtf8().data());
    return retQ_;
};