JNIEXPORT void JNICALL
Java_org_zeromq_czmq_Zproc__1_1setLogSender (JNIEnv *env, jclass c, jstring endpoint)
{
    char *endpoint_ = (char *) (*env)->GetStringUTFChars (env, endpoint, NULL);
    zproc_set_log_sender (endpoint_);
    (*env)->ReleaseStringUTFChars (env, endpoint, endpoint_);
}
Exemplo n.º 2
0
///
//  Sends log output to a PUB socket bound to the specified endpoint. To   
//  collect such log output, create a SUB socket, subscribe to the traffic 
//  you care about, and connect to the endpoint. Log traffic is sent as a  
//  single string frame, in the same format as when sent to stdout. The    
//  log system supports a single sender; multiple calls to this method will
//  bind the same sender to multiple endpoints. To disable the sender, call
//  this method with a null argument.                                      
void QmlZprocAttached::setLogSender (const QString &endpoint) {
    zproc_set_log_sender (endpoint.toUtf8().data());
};
Exemplo n.º 3
0
///
//  Sends log output to a PUB socket bound to the specified endpoint. To
//  collect such log output, create a SUB socket, subscribe to the traffic
//  you care about, and connect to the endpoint. Log traffic is sent as a
//  single string frame, in the same format as when sent to stdout. The
//  log system supports a single sender; multiple calls to this method will
//  bind the same sender to multiple endpoints. To disable the sender, call
//  this method with a null argument.
void QZproc::setLogSender (const QString &endpoint)
{
    zproc_set_log_sender (endpoint.toUtf8().data());

}