terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ AcceptAsync()

bool System.Net.Sockets.Socket.AcceptAsync ( SocketAsyncEventArgs e)
inline

Definition at line 820 of file Socket.cs.

821 {
822 do
823 {
825 if (!this.is_bound)
826 {
827 goto IL_006B;
828 }
829 }
830 while (!this.is_listening || e._bufferList != null);
831 int count = e._count;
832 Socket <AcceptSocket>k__BackingField = e.<AcceptSocket>k__BackingField;
833 bool flag;
834 if (<AcceptSocket>k__BackingField != null)
835 {
836 if (!<AcceptSocket>k__BackingField.is_bound)
837 {
838 flag = <AcceptSocket>k__BackingField.is_connected;
839 if (!flag)
840 {
841 goto IL_0041;
842 }
843 }
844 return "AcceptSocket: The socket must not be bound or connected." != null;
845 }
846 IL_0041:
847 if (!flag)
848 {
849 }
850 SocketAsyncResult socket_async_result = e.socket_async_result;
852 IntPtr handle = socket_async_result.Handle;
853 SocketAsyncResult socket_async_result2 = e.socket_async_result;
854 return true;
855 IL_006B:
856 return "You must call the Bind method before performing this operation." != null;
857 }
class f__AnonymousType0<< Count > j__TPar
SemaphoreSlim ReadSem
Definition Socket.cs:2064

References System.Net.Sockets.SocketAsyncEventArgs._bufferList, System.Net.Sockets.SocketAsyncEventArgs._count, System.count, System.Net.Sockets.SocketAsyncResult.Handle, System.Net.Sockets.Socket.is_bound, System.Net.Sockets.Socket.is_connected, System.Net.Sockets.Socket.is_listening, j__TPar, System.Net.Sockets.Socket.ReadSem, System.Net.Sockets.SocketAsyncEventArgs.socket_async_result, and System.Net.Sockets.Socket.ThrowIfDisposedAndClosed().