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

◆ EndSendReceive()

int System.Net.Sockets.Socket.EndSendReceive ( IAsyncResult asyncResult,
out SocketError errorCode )
inlineprivate

Definition at line 2582 of file Socket.cs.

2583 {
2586 {
2587 throw new ArgumentException(null, "asyncResult");
2588 }
2589 if (!task.IsCompleted)
2590 {
2591 ((IAsyncResult)task).AsyncWaitHandle.WaitOne();
2592 }
2593 if (task.IsCompletedSuccessfully)
2594 {
2595 errorCode = SocketError.Success;
2596 return task.Result;
2597 }
2599 return 0;
2600 }
static SocketError GetSocketErrorFromFaultedTask(Task t)
Definition Socket.cs:3854
static Task GetTask(IAsyncResult asyncResult)
Definition TaskToApm.cs:71

References System.asyncResult, System.Net.Sockets.Socket.GetSocketErrorFromFaultedTask(), System.Threading.Tasks.TaskToApm.GetTask(), System.task, and System.Net.Sockets.Socket.ThrowIfDisposed().

Referenced by System.Net.Sockets.Socket.EndReceive(), and System.Net.Sockets.Socket.EndSend().