plebble
protocol.h
Go to the documentation of this file.
1 /*
2 -------------------------------------------------------------------------------
3  PLEBBLE
4 -------------------------------------------------------------------------------
5  Copyright (C) 2019-2020 KATLAS Technology. (http://katlastechnology.com)
6  Copyright (C) 2017-2020 Marcos Mayorga. (mm@mm-studios.com)
7 
8  This file is part of our Plebble(R) Platform.
9 
10  The code below cannot be copied, used for any purpose other than the one
11  agreed and/or distributed without the express permission of
12  KATLAS Technology.
13 -------------------------------------------------------------------------------
14 
15 
16 */
17 #ifndef USGOV_9bf343e8ad5f89ce96b35e9e287ad85205c61b8bd324f693e11d2b89c55a1930
18 #define USGOV_9bf343e8ad5f89ce96b35e9e287ad85205c61b8bd324f693e11d2b89c55a1930
19 
20 #include <inttypes.h>
21 
22 namespace us { namespace gov {
23 namespace protocol {
24 
25  static constexpr uint16_t protocol_suffix{0};
26  static inline bool is_node_protocol(const uint16_t& i) { return (i&3)==protocol_suffix; }
27 
28  #include <us/api/apitool_generated__c++__protocol_gov_socket>
29 
30 }
31 }}
32 
33 #endif
us
Definition: daemon.h:22
us::gov.protocol::protocol_suffix
static constexpr uint16_t protocol_suffix
Definition: protocol.h:25
us::gov.protocol.is_node_protocol
static bool is_node_protocol(short i)
Definition: protocol.cs:22