jellyfin/SocketHttpListener.Portable/Primitives/IStreamFactory.cs

19 lines
505 B
C#
Raw Normal View History

2016-11-11 20:55:12 +01:00
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MediaBrowser.Model.Net;
namespace SocketHttpListener.Primitives
{
public interface IStreamFactory
{
2017-03-02 21:50:09 +01:00
Stream CreateNetworkStream(IAcceptSocket acceptSocket, bool ownsSocket);
2016-11-11 20:55:12 +01:00
Stream CreateSslStream(Stream innerStream, bool leaveInnerStreamOpen);
Task AuthenticateSslStreamAsServer(Stream stream, ICertificate certificate);
}
}