Esempio n. 1
0
JNIEXPORT jlong JNICALL
Java_org_zeromq_czmq_Zsock__1_1newXpub (JNIEnv *env, jclass c, jstring endpoint)
{
    char *endpoint_ = (char *) (*env)->GetStringUTFChars (env, endpoint, NULL);
    jlong new_xpub_ = (jlong) (intptr_t) zsock_new_xpub (endpoint_);
    (*env)->ReleaseStringUTFChars (env, endpoint, endpoint_);
    return new_xpub_;
}
Esempio n. 2
0
///
//  Create an XPUB socket. Default action is bind.
QZsock* QZsock::newXpub (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_xpub (endpoint.toUtf8().data()), qObjParent);
}
Esempio n. 3
0
///
//  Create an XPUB socket. Default action is bind.
QmlZsock *QmlZsockAttached::constructXpub (const QString &endpoint) {
    QmlZsock *qmlSelf = new QmlZsock ();
    qmlSelf->self = zsock_new_xpub (endpoint.toUtf8().data());
    return qmlSelf;
};
Esempio n. 4
0
File: qzmq.c Progetto: jaeheum/qzmq
Z K1(zsocknewxpub){R ptr(zsock_new_xpub(xs));}
Esempio n. 5
0
///
//  Create an XPUB socket. Default action is bind.
QmlZsock *QmlZsockAttached::newXpub (const QString &endpoint) {
    QmlZsock *retQ_ = new QmlZsock ();
    retQ_->self = zsock_new_xpub (endpoint.toUtf8().data());
    return retQ_;
};