Distributed Publish Subscribe for IoT
synchronous.h
Go to the documentation of this file.
1 /*
2  *******************************************************************
3  *
4  * Copyright 2016 Intel Corporation All rights reserved.
5  *
6  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21  */
22 
23 #ifndef _DPS_SYNCHRONOUS_H
24 #define _DPS_SYNCHRONOUS_H
25 
26 #include <dps/dps.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
46 DPS_Status DPS_LinkTo(DPS_Node* node, const char* host, uint16_t port, DPS_NodeAddress* addr);
47 
48 
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif
DPS_Status DPS_UnlinkFrom(DPS_Node *node, DPS_NodeAddress *addr)
Unlink from a previously linked remote node.
int DPS_Status
Definition: err.h:30
struct _DPS_NodeAddress DPS_NodeAddress
Opaque type for a remote node address.
Definition: dps.h:57
struct _DPS_Node DPS_Node
Opaque type for a node.
Definition: dps.h:52
DPS_Status DPS_LinkTo(DPS_Node *node, const char *host, uint16_t port, DPS_NodeAddress *addr)
Synchronous helper APIs that wrap the asynchronous versions.