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_REQREP0_REP_H
12 #define NNG_PROTOCOL_REQREP0_REP_H
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 NNG_DECL int nng_rep0_open(nng_socket *);
19 NNG_DECL int nng_rep0_open_raw(nng_socket *);
20 
21 #ifndef nng_rep_open
22 #define nng_rep_open nng_rep0_open
23 #endif
24 
25 #ifndef nng_rep_open_raw
26 #define nng_rep_open_raw nng_rep0_open_raw
27 #endif
28 
29 #define NNG_REP0_SELF 0x31
30 #define NNG_REP0_PEER 0x30
31 #define NNG_REP0_SELF_NAME "rep"
32 #define NNG_REP0_PEER_NAME "req"
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif // NNG_PROTOCOL_REQREP0_REP_H
39