mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
*** empty log message ***
This commit is contained in:
parent
d73c872a2f
commit
1db4b6f510
@ -13,6 +13,25 @@ Configure(config_net);
|
||||
NotifyCategoryDef(net, "");
|
||||
|
||||
ConfigureFn(config_net) {
|
||||
init_libnet();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: init_libnet
|
||||
// Description: Initializes the library. This must be called at
|
||||
// least once before any of the functions or classes in
|
||||
// this library can be used. Normally it will be
|
||||
// called by the static initializers and need not be
|
||||
// called explicitly, but special cases exist.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void
|
||||
init_libnet() {
|
||||
static bool initialized = false;
|
||||
if (initialized) {
|
||||
return;
|
||||
}
|
||||
initialized = true;
|
||||
|
||||
NetDatagram::init_type();
|
||||
}
|
||||
|
||||
|
@ -17,4 +17,7 @@ extern int get_net_max_write_queue();
|
||||
extern int get_net_max_response_queue();
|
||||
extern bool get_net_error_abort();
|
||||
|
||||
extern EXPCL_PANDA void init_libnet();
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user