JNIEXPORT jlong JNICALL
Java_org_zeromq_czmq_Zsock__1_1newRadio (JNIEnv *env, jclass c, jstring endpoint)
{
    char *endpoint_ = (char *) (*env)->GetStringUTFChars (env, endpoint, NULL);
    jlong new_radio_ = (jlong) (intptr_t) zsock_new_radio (endpoint_);
    (*env)->ReleaseStringUTFChars (env, endpoint, endpoint_);
    return new_radio_;
}
Exemple #2
0
///
//  Create a RADIO socket. Default action is bind.
QZsock* QZsock::newRadio (const QString &endpoint, QObject *qObjParent)
{
    return new QZsock (zsock_new_radio (endpoint.toUtf8().data()), qObjParent);
}
Exemple #3
0
///
//  Create a RADIO socket. Default action is bind.
QmlZsock *QmlZsockAttached::constructRadio (const QString &endpoint) {
    QmlZsock *qmlSelf = new QmlZsock ();
    qmlSelf->self = zsock_new_radio (endpoint.toUtf8().data());
    return qmlSelf;
};