00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "config_nativenet.h"
00016
00017 #include "socket_ip.h"
00018 #include "socket_tcp.h"
00019 #include "socket_tcp_listen.h"
00020 #include "socket_tcp_ssl.h"
00021 #include "socket_udp_incoming.h"
00022 #include "socket_udp_outgoing.h"
00023 #include "socket_udp.h"
00024 #include "socket_portable.h"
00025 #include "buffered_datagramconnection.h"
00026 #include "pandaSystem.h"
00027
00028 #include "dconfig.h"
00029
00030 Configure(config_nativenet);
00031 NotifyCategoryDef(nativenet, "");
00032
00033 ConfigureFn(config_nativenet) {
00034 init_libnativenet();
00035 }
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 void
00047 init_libnativenet() {
00048 static bool initialized = false;
00049 if (initialized) {
00050 return;
00051 }
00052 initialized = true;
00053
00054 Socket_IP::init_type();
00055 Socket_TCP::init_type();
00056 Socket_TCP_Listen::init_type();
00057 #ifdef HAVE_OPENSSL
00058 Socket_TCP_SSL::init_type();
00059 #endif
00060 Socket_UDP_Incoming::init_type();
00061 Socket_UDP_Outgoing::init_type();
00062 Socket_UDP::init_type();
00063 Buffered_DatagramConnection::init_type();
00064
00065 PandaSystem *ps = PandaSystem::get_global_ptr();
00066 ps->add_system("nativenet");
00067
00068 init_network();
00069 }
00070