Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ThrowIfConnectionAborted()

static void System.Net.WebSockets.HttpWebSocket.ThrowIfConnectionAborted ( Stream connection,
bool read )
inlinestaticpackage

Definition at line 220 of file HttpWebSocket.cs.

221 {
222 if ((!read && !connection.CanWrite) || (read && !connection.CanRead))
223 {
224 throw new WebSocketException(WebSocketError.ConnectionClosedPrematurely);
225 }
226 }

References System.IO.Stream.CanRead, and System.IO.Stream.CanWrite.

Referenced by System.Net.WebSockets.WebSocketBase.WebSocketOperation.Process().