Settings for max sizes of types
Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="socket"></param>
 /// <param name="maxSizeSettings"></param>
 public TcpNetworkSender(
     Socket socket,
     MaxSizeSettings maxSizeSettings)
     : base(maxSizeSettings)
 {
     this.socket             = socket;
     this.reusableSeaaBuffer = new SimpleObjectPool <SeaaBuffer>(() => new SeaaBuffer(SeaaBuffer_Completed, this.serverBufferSize));
     this.responseObject     = null;
 }
Exemplo n.º 2
0
 /// <summary>
 /// NetworkSenderBase constructor
 /// </summary>
 /// <param name="maxSizeSettings"></param>
 public NetworkSenderBase(MaxSizeSettings maxSizeSettings)
 {
     this.maxSizeSettings  = maxSizeSettings;
     this.serverBufferSize = BufferSizeUtils.ServerBufferSize(maxSizeSettings);
 }