사용자정의 구성
Bolt 구성을 서버 또는 클라이언트 시작전에 코드를 통해 사용자정의로 하려면, BoltRuntimeSettings.GetConfigCopy
를 호출하여 할 수 있습니다. 리턴되는 객체를 변경하고 StartClient 또는 StartServer에게 마지막 아규먼트로 전달하세요.
코드를 통해 Bolt 설정 윈도우에 나타나지 않는 더 많은 설정에 액세스 할 수 있습니다.
BoltConfig config = BoltRuntimeSettings.GetConfigCopy();
// change any settings you want on the config object here,
// be aware that bolt will not verify/limit any settings when you do
// it directly in code, so you can break things completely by supplying
// incorrect/invalid config values.
BoltLauncher.StartServer(new UdpEndPoint(UdpIPv4Address.Any, 27000), config);