/// <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; }
/// <summary> /// Constructor /// </summary> /// <param name="bufferSize">Buffer size</param> public NetworkSender(int bufferSize) { reusableSeaaBuffer = new SimpleObjectPool <SeaaBuffer>(() => new SeaaBuffer(SeaaBuffer_Completed, bufferSize)); }