Ejemplo n.º 1
0
mxArray* mechanism_to_m(void* handle) {
    mxArray* ret;
    const zmq_sockopt_mechanism_t* mechanism = NULL;

    mechanism = find_sockopt_mechanism_by_id(*((int*) handle));
    if (mechanism != NULL) ret = (mxArray*) str_to_m((void*) mechanism->name);

    return ret;
}
Ejemplo n.º 2
0
mxArray* socktype_to_m(void* handle) {
    mxArray* ret;
    const zmq_socket_type_t* sockType = NULL;

    sockType = find_socket_type_by_id(*((int*) handle));

    if (sockType != NULL) ret = (mxArray*) str_to_m((void*) sockType->name);

    return ret;
}