Panda3D
config_net.h
1 // Filename: config_net.h
2 // Created by: drose (25Feb00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef CONFIG_NET_H
16 #define CONFIG_NET_H
17 
18 #include "pandabase.h"
19 #include "notifyCategoryProxy.h"
20 #include "configVariableInt.h"
21 #include "configVariableDouble.h"
22 #include "configVariableBool.h"
23 #include "configVariableEnum.h"
24 #include "threadPriority.h"
25 
26 // Configure variables for net package.
27 
28 NotifyCategoryDecl(net, EXPCL_PANDA_NET, EXPTP_PANDA_NET);
29 
30 extern int get_net_max_write_queue();
31 extern int get_net_max_response_queue();
32 extern bool get_net_error_abort();
33 extern double get_net_max_poll_cycle();
34 extern double get_net_max_block();
35 extern string make_thread_name(const string &thread_name, int thread_index);
36 
37 extern ConfigVariableInt net_max_read_per_epoch;
38 extern ConfigVariableInt net_max_write_per_epoch;
39 
40 extern ConfigVariableEnum<ThreadPriority> net_thread_priority;
41 
42 extern EXPCL_PANDA_NET void init_libnet();
43 
44 #endif
45 
This class specializes ConfigVariable as an enumerated type.
This is a convenience class to specialize ConfigVariable as an integer type.