mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
18 lines
493 B
C#
18 lines
493 B
C#
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
|
|
{
|
|
Stream CreateNetworkStream(ISocket socket, bool ownsSocket);
|
|
Stream CreateSslStream(Stream innerStream, bool leaveInnerStreamOpen);
|
|
|
|
Task AuthenticateSslStreamAsServer(Stream stream, ICertificate certificate);
|
|
}
|
|
}
|