Settings for max sizes of types
Esempio 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;
 }
Esempio n. 2
0
 /// <summary>
 /// NetworkSenderBase constructor
 /// </summary>
 /// <param name="maxSizeSettings"></param>
 public NetworkSenderBase(MaxSizeSettings maxSizeSettings)
 {
     this.maxSizeSettings  = maxSizeSettings;
     this.serverBufferSize = BufferSizeUtils.ServerBufferSize(maxSizeSettings);
 }