Embedded Multicore Building Blocks V1.0.0
mtapi_network.h
1 /*
2  * Copyright (c) 2014-2017, Siemens AG. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *
7  * 1. Redistributions of source code must retain the above copyright notice,
8  * this list of conditions and the following disclaimer.
9  *
10  * 2. Redistributions in binary form must reproduce the above copyright notice,
11  * this list of conditions and the following disclaimer in the documentation
12  * and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24  * POSSIBILITY OF SUCH DAMAGE.
25  */
26 
27 #ifndef EMBB_MTAPI_C_MTAPI_NETWORK_H_
28 #define EMBB_MTAPI_C_MTAPI_NETWORK_H_
29 
30 
31 #include <embb/mtapi/c/mtapi_ext.h>
32 
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 
72  MTAPI_IN char * host,
76  MTAPI_IN mtapi_uint16_t port,
77  MTAPI_IN mtapi_uint16_t max_connections,
80  MTAPI_IN mtapi_size_t buffer_size,
84  MTAPI_OUT mtapi_status_t* status
86 );
87 
119  MTAPI_OUT mtapi_status_t* status
121 );
122 
189  MTAPI_IN mtapi_domain_t domain_id,
191  MTAPI_IN mtapi_job_id_t local_job_id,
193  MTAPI_IN mtapi_job_id_t remote_job_id,
195  MTAPI_IN char * host,
196  MTAPI_IN mtapi_uint16_t port,
198  MTAPI_OUT mtapi_status_t* status
200 );
201 
202 
203 #ifdef __cplusplus
204 }
205 #endif
206 
207 
208 #endif // EMBB_MTAPI_C_MTAPI_NETWORK_H_
mtapi_action_hndl_t mtapi_network_action_create(MTAPI_IN mtapi_domain_t domain_id, MTAPI_IN mtapi_job_id_t local_job_id, MTAPI_IN mtapi_job_id_t remote_job_id, MTAPI_IN char *host, MTAPI_IN mtapi_uint16_t port, MTAPI_OUT mtapi_status_t *status)
This function creates a network action.
struct mtapi_action_hndl_struct mtapi_action_hndl_t
Action handle type.
Definition: mtapi.h:979
void mtapi_network_plugin_finalize(MTAPI_OUT mtapi_status_t *status)
Finalizes the MTAPI network environment on the local MTAPI node.
void mtapi_network_plugin_initialize(MTAPI_IN char *host, MTAPI_IN mtapi_uint16_t port, MTAPI_IN mtapi_uint16_t max_connections, MTAPI_IN mtapi_size_t buffer_size, MTAPI_OUT mtapi_status_t *status)
Initializes the MTAPI network environment on a previously initialized MTAPI node. ...