aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/Primitives/IStreamFactory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SocketHttpListener/Primitives/IStreamFactory.cs')
-rw-r--r--SocketHttpListener/Primitives/IStreamFactory.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/SocketHttpListener/Primitives/IStreamFactory.cs b/SocketHttpListener/Primitives/IStreamFactory.cs
new file mode 100644
index 000000000..57e21e31b
--- /dev/null
+++ b/SocketHttpListener/Primitives/IStreamFactory.cs
@@ -0,0 +1,18 @@
+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(IAcceptSocket acceptSocket, bool ownsSocket);
+ Stream CreateSslStream(Stream innerStream, bool leaveInnerStreamOpen);
+
+ Task AuthenticateSslStreamAsServer(Stream stream, ICertificate certificate);
+ }
+}