Ejemplo n.º 1
0
Archivo: XCfg.cs Proyecto: arsuq/brays
 /// <param name="outHighway">The memory highway, used for sending tiles.
 /// If null, a HeapHighway with default capacity of 65KB is used.</param>
 public XCfg(BeamerCfg bcfg, XLogCfg log, IMemoryHighway outHighway)
 {
     this.bcfg       = bcfg;
     this.log        = log;
     this.outHighway = outHighway != null ? outHighway :
                       new HeapHighway(new HighwaySettings(Beamer.UDP_MAX), Beamer.UDP_MAX);
 }
Ejemplo n.º 2
0
 public CfgX(BeamerCfg cfg, IPEndPoint ep)
 {
     TileSizeBytes         = cfg.TileSizeBytes;
     MaxBeamedTilesAtOnce  = cfg.MaxBeamedTilesAtOnce;
     MaxConcurrentReceives = cfg.MaxConcurrentReceives;
     SendBufferSize        = cfg.SendBufferSize;
     ReceiveBufferSize     = cfg.ReceiveBufferSize;
     ep.Address.TryWriteBytes(IP, out int bw);
     Port   = (ushort)ep.Port;
     IsIPv4 = ep.Address.GetAddressBytes().Length < 16;
 }
Ejemplo n.º 3
0
Archivo: XCfg.cs Proyecto: arsuq/brays
 public XCfg(BeamerCfg bcfg, IMemoryHighway outHighway) : this(bcfg, null, outHighway)
 {
 }