Example #1
0
///
//  Return current host name, for use in public tcp:// endpoints.
//  If the host name is not resolvable, returns NULL.
QString QZproc::hostname ()
{
    char *retStr_ = zproc_hostname ();
    QString rv = QString (retStr_);
    zstr_free (&retStr_);
    return rv;
}
JNIEXPORT jstring JNICALL
Java_org_zeromq_czmq_Zproc__1_1hostname (JNIEnv *env, jclass c)
{
    char *hostname_ = (char *) zproc_hostname ();
    jstring return_string_ = (*env)->NewStringUTF (env, hostname_);
    zstr_free (&hostname_);
    return return_string_;
}
Example #3
0
///
//  Return current host name, for use in public tcp:// endpoints.
//  If the host name is not resolvable, returns NULL.            
QString QmlZprocAttached::hostname () {
    char *retStr_ = zproc_hostname ();
    QString retQStr_ = QString (retStr_);
    free (retStr_);
    return retQStr_;
};