1 //
2 // Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
3 // Copyright 2018 Capitar IT Group BV <info@capitar.com>
4 //
5 // This software is supplied under the terms of the MIT License, a
6 // copy of which should be located in the distribution where this
7 // file was obtained (LICENSE.txt).  A copy of the license may also be
8 // found online at https://opensource.org/licenses/MIT.
9 //
10 
11 #ifndef NNG_PROTOCOL_PAIR1_PAIR_H
12 #define NNG_PROTOCOL_PAIR1_PAIR_H
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 NNG_DECL int nng_pair1_open(nng_socket *);
19 NNG_DECL int nng_pair1_open_raw(nng_socket *);
20 NNG_DECL int nng_pair1_open_poly(nng_socket *);
21 
22 #ifndef nng_pair_open
23 #define nng_pair_open nng_pair1_open
24 #endif
25 
26 #ifndef nng_pair_open_raw
27 #define nng_pair_open_raw nng_pair1_open_raw
28 #endif
29 
30 #define NNG_OPT_PAIR1_POLY "pair1:polyamorous"
31 #define NNG_PAIR1_SELF 0x11
32 #define NNG_PAIR1_PEER 0x11
33 #define NNG_PAIR1_SELF_NAME "pair1"
34 #define NNG_PAIR1_PEER_NAME "pair1"
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif // NNG_PROTOCOL_PAIR1_PAIR_H
41