예제 #1
0
        public void Start(Configuration config)
        {
            mConfig = config;
            mConfig.netPeerConfig.EnableMessageType(NetIncomingMessageType.ConnectionApproval);
            #if VERBOSE_DEBUG
            mConfig.netPeerConfig.EnableMessageType(NetIncomingMessageType.VerboseDebugMessage);
            #endif

            mNetServer = new NetServer(mConfig.netPeerConfig);
            mNetServer.Start();

            NetLog.InfoFormat("{0} Network Initialized", appIdentifier);
        }