2005-01-12 20:51:34 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-01-12 20:51:34 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2005-01-12 20:51:34 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
|
|
|
#ifndef MCA_IOF_PROXY_SVC_H
|
|
|
|
#define MCA_IOF_PROXY_SVC_H
|
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte_config.h"
|
|
|
|
#include "orte/mca/iof/iof.h"
|
|
|
|
#include "orte/mca/ns/ns.h"
|
2005-01-12 20:51:34 +00:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2005-01-13 15:27:28 +00:00
|
|
|
* Publish endpoint to forwarding service.
|
2005-01-12 20:51:34 +00:00
|
|
|
*/
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
int orte_iof_proxy_svc_publish(
|
|
|
|
const orte_process_name_t* name,
|
2005-01-12 20:51:34 +00:00
|
|
|
int tag
|
|
|
|
);
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
int orte_iof_proxy_svc_unpublish(
|
|
|
|
const orte_process_name_t* name,
|
|
|
|
orte_ns_cmp_bitmask_t mask,
|
2005-01-12 20:51:34 +00:00
|
|
|
int tag
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2005-01-13 15:27:28 +00:00
|
|
|
* Subscribe one/more destination processes as
|
|
|
|
* specified by the process name/mask to one/more
|
|
|
|
* source processes.
|
2005-01-12 20:51:34 +00:00
|
|
|
*/
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
int orte_iof_proxy_svc_subscribe(
|
|
|
|
const orte_process_name_t* src_name,
|
|
|
|
orte_ns_cmp_bitmask_t src_mask,
|
2005-01-12 20:51:34 +00:00
|
|
|
int src_tag,
|
2005-03-14 20:57:21 +00:00
|
|
|
const orte_process_name_t* dst_name,
|
|
|
|
orte_ns_cmp_bitmask_t dst_mask,
|
2005-01-12 20:51:34 +00:00
|
|
|
int dst_tag
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2005-01-13 15:27:28 +00:00
|
|
|
* Remove subscription from forwarding
|
|
|
|
* service.
|
2005-01-12 20:51:34 +00:00
|
|
|
*/
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
int orte_iof_proxy_svc_unsubscribe(
|
|
|
|
const orte_process_name_t* src_name,
|
|
|
|
orte_ns_cmp_bitmask_t src_mask,
|
2005-01-12 20:51:34 +00:00
|
|
|
int src_tag,
|
2005-03-14 20:57:21 +00:00
|
|
|
const orte_process_name_t* dst_name,
|
|
|
|
orte_ns_cmp_bitmask_t dst_mask,
|
2005-01-12 20:51:34 +00:00
|
|
|
int dst_tag
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2005-01-13 15:27:28 +00:00
|
|
|
* Dispatch messages received from forwarding
|
|
|
|
* service.
|
2005-01-12 20:51:34 +00:00
|
|
|
*/
|
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
void orte_iof_proxy_svc_recv(
|
2005-01-12 20:51:34 +00:00
|
|
|
int status,
|
2005-03-14 20:57:21 +00:00
|
|
|
orte_process_name_t* peer,
|
2005-01-12 20:51:34 +00:00
|
|
|
struct iovec* msg,
|
|
|
|
int count,
|
2005-03-14 20:57:21 +00:00
|
|
|
orte_rml_tag_t tag,
|
2005-01-12 20:51:34 +00:00
|
|
|
void* cbdata);
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|