Goby v2
queue_constants.h
1 // Copyright 2009-2018 Toby Schneider (http://gobysoft.org/index.wt/people/toby)
2 // GobySoft, LLC (2013-)
3 // Massachusetts Institute of Technology (2007-2014)
4 // Community contributors (see AUTHORS file)
5 //
6 //
7 // This file is part of the Goby Underwater Autonomy Project Libraries
8 // ("The Goby Libraries").
9 //
10 // The Goby Libraries are free software: you can redistribute them and/or modify
11 // them under the terms of the GNU Lesser General Public License as published by
12 // the Free Software Foundation, either version 2.1 of the License, or
13 // (at your option) any later version.
14 //
15 // The Goby Libraries are distributed in the hope that they will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public License
21 // along with Goby. If not, see <http://www.gnu.org/licenses/>.
22 
23 #ifndef QueueConstants20091205H
24 #define QueueConstants20091205H
25 
26 #include "goby/acomms/acomms_constants.h"
27 #include "goby/common/time.h"
28 
29 namespace goby
30 {
31 namespace acomms
32 {
33 const unsigned MULTIMESSAGE_MASK = 1 << 7;
34 const unsigned BROADCAST_MASK = 1 << 6;
35 const unsigned VAR_ID_MASK = 0xFF ^ MULTIMESSAGE_MASK ^ BROADCAST_MASK;
36 
37 // number of bytes used to store the size of the following user frame
38 const unsigned USER_FRAME_NEXT_SIZE_BYTES = 1;
39 
40 // how old an on_demand message can be before re-encoding
41 const boost::posix_time::time_duration ON_DEMAND_SKEW = boost::posix_time::seconds(1);
42 } // namespace acomms
43 } // namespace goby
44 #endif
The global namespace for the Goby project.