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_SURVEY0_SURVEY_H 12 #define NNG_PROTOCOL_SURVEY0_SURVEY_H 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 NNG_DECL int nng_surveyor0_open(nng_socket *); 19 NNG_DECL int nng_surveyor0_open_raw(nng_socket *); 20 21 #ifndef nng_surveyor_open 22 #define nng_surveyor_open nng_surveyor0_open 23 #endif 24 25 #ifndef nng_surveyor_open_raw 26 #define nng_surveyor_open_raw nng_surveyor0_open_raw 27 #endif 28 29 #define NNG_SURVEYOR0_SELF 0x62 30 #define NNG_SURVEYOR0_PEER 0x63 31 #define NNG_SURVEYOR0_SELF_NAME "surveyor" 32 #define NNG_SURVEYOR0_PEER_NAME "respondent" 33 34 #define NNG_OPT_SURVEYOR_SURVEYTIME "surveyor:survey-time" 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif // NNG_PROTOCOL_SURVEY0_SURVEY_H 41