private TcpBridgeSettings GetBridgeSettings(EzServerSettings settings, List <NetworkPoint> clients)
        {
            NetworkPoint      listenPoint    = new NetworkPoint(settings.BridgeListenEndPoint);
            NetworkPoint      publicPoint    = new NetworkPoint(settings.BridgePublicEndPoint);
            TcpBridgeSettings bridgeSettings = new TcpBridgeSettings(listenPoint, publicPoint, clients);

            bridgeSettings.ServerSettings = settings.BridgeServerSettings;
            return(bridgeSettings);
        }
 public EzServerSettings(EzServerSettings settings)
 {
     Active                    = settings.Active;
     ListenIpAddress           = settings.ListenIpAddress;
     PublicIpAddress           = settings.PublicIpAddress;
     Port                      = settings.Port;
     BridgePort                = settings.BridgePort;
     LoadHandlerScripts        = settings.LoadHandlerScripts;
     HandlerScriptsPath        = settings.HandlerScriptsPath;
     LogUnknownIncomingPackets = settings.LogUnknownIncomingPackets;
     LogOutgoingPackets        = settings.LogOutgoingPackets;
     LogIncomingPackets        = settings.LogIncomingPackets;
     DatabaseSettings          = new DatabaseSettings(settings.DatabaseSettings);
     ServerSettings            = new AsyncEventSettings(settings.ServerSettings);
     BridgeServerSettings      = new AsyncEventSettings(settings.BridgeServerSettings);
 }