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; }
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; }