Browse Source

[Modify] Add it

To have access to the underlying TCP socket.
pull/298/merge
sta 5 months ago
parent
commit
918250e3c1
  1. 7
      websocket-sharp/Net/WebSockets/HttpListenerWebSocketContext.cs

7
websocket-sharp/Net/WebSockets/HttpListenerWebSocketContext.cs

@ -30,6 +30,7 @@ using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;
using System.Net.Sockets;
using System.Security.Principal;
namespace WebSocketSharp.Net.WebSockets
@ -68,6 +69,12 @@ namespace WebSocketSharp.Net.WebSockets
}
}
internal Socket Socket {
get {
return _context.Connection.Socket;
}
}
internal Stream Stream {
get {
return _context.Connection.Stream;

Loading…
Cancel
Save