コード例 #1
0
JNIEXPORT void JNICALL
Java_org_zeromq_czmq_Zsock__1_1setIdentity (JNIEnv *env, jclass c, jlong self, jstring identity)
{
    char *identity_ = (char *) (*env)->GetStringUTFChars (env, identity, NULL);
    zsock_set_identity ((zsock_t *) (intptr_t) self, identity_);
    (*env)->ReleaseStringUTFChars (env, identity, identity_);
}
コード例 #2
0
ファイル: qzsock.cpp プロジェクト: digideskio/zebra
///
//  Set socket option `identity`.
void QZsock::setIdentity (const QString &identity)
{
    zsock_set_identity (self, identity.toUtf8().data());
    
}