Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ WebSocketReceive()

static void System.Net.WebSockets.WebSocketProtocolComponent.WebSocketReceive ( WebSocketBase webSocket)
inlinestaticpackage

Definition at line 230 of file WebSocketProtocolComponent.cs.

231 {
233 int errorCode;
234 try
235 {
236 errorCode = global::Interop.WebSocket.WebSocketReceive(webSocket.SessionHandle, IntPtr.Zero, IntPtr.Zero);
237 }
238 catch (ObjectDisposedException innerException)
239 {
240 throw ConvertObjectDisposedException(webSocket, innerException);
241 }
242 ThrowOnError(errorCode);
243 }
static WebSocketException ConvertObjectDisposedException(WebSocketBase webSocket, ObjectDisposedException innerException)
static void ThrowIfSessionHandleClosed(WebSocketBase webSocket)

References System.Net.WebSockets.WebSocketProtocolComponent.ConvertObjectDisposedException(), System.Net.WebSockets.WebSocketBase.SessionHandle, System.Net.WebSockets.WebSocketProtocolComponent.ThrowIfSessionHandleClosed(), System.Net.WebSockets.WebSocketProtocolComponent.ThrowOnError(), and System.IntPtr.Zero.

Referenced by System.Net.WebSockets.WebSocketBase.WebSocketOperation.ReceiveOperation.ShouldContinue().