示例#1
0
文件: QmlZsys.cpp 项目: taotetek/czmq
///
//  Configure the automatic use of pre-allocated FDs when creating new sockets.
//  If 0 (default), nothing will happen. Else, when a new socket is bound, the
//  system API will be used to check if an existing pre-allocated FD with a
//  matching port (if TCP) or path (if IPC) exists, and if it does it will be
//  set via the ZMQ_USE_FD socket option so that the library will use it
//  instead of creating a new socket.
void QmlZsysAttached::setAutoUseFd (int autoUseFd) {
    zsys_set_auto_use_fd (autoUseFd);
};
示例#2
0
JNIEXPORT void JNICALL
Java_org_zeromq_czmq_Zsys__1_1setAutoUseFd (JNIEnv *env, jclass c, jint auto_use_fd)
{
    zsys_set_auto_use_fd ((int) auto_use_fd);
}
示例#3
0
///
//  Configure the automatic use of pre-allocated FDs when creating new sockets.
//  If 0 (default), nothing will happen. Else, when a new socket is bound, the
//  system API will be used to check if an existing pre-allocated FD with a
//  matching port (if TCP) or path (if IPC) exists, and if it does it will be
//  set via the ZMQ_USE_FD socket option so that the library will use it
//  instead of creating a new socket.
void QZsys::setAutoUseFd (int autoUseFd)
{
    zsys_set_auto_use_fd (autoUseFd);

}