コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="socket"></param>
 /// <param name="serverBufferSize"></param>
 public TcpNetworkSender(
     Socket socket,
     int serverBufferSize)
     : base(serverBufferSize)
 {
     this.socket             = socket;
     this.reusableSeaaBuffer = new SimpleObjectPool <SeaaBuffer>(() => new SeaaBuffer(SeaaBuffer_Completed, this.serverBufferSize));
     this.responseObject     = null;
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="bufferSize">Buffer size</param>
 public NetworkSender(int bufferSize)
 {
     reusableSeaaBuffer = new SimpleObjectPool <SeaaBuffer>(() => new SeaaBuffer(SeaaBuffer_Completed, bufferSize));
 }