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

◆ Blocking

bool System.Net.Sockets.Socket.Blocking
getset

Definition at line 695 of file Socket.cs.

696 {
697 get
698 {
699 return _willBlock;
700 }
701 set
702 {
704 if (System.Net.NetEventSource.Log.IsEnabled())
705 {
706 System.Net.NetEventSource.Info(this, $"value:{value} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}", "Blocking");
707 }
708 bool current;
709 SocketError socketError = InternalSetBlocking(value, out current);
710 if (socketError != 0)
711 {
713 }
714 _willBlock = current;
715 }
716 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
SocketError InternalSetBlocking(bool desired, out bool current)
Definition Socket.cs:3592
void UpdateStatusAfterSocketErrorAndThrowException(SocketError error, [CallerMemberName] string callerName=null)
Definition Socket.cs:3715

Referenced by System.Net.Sockets.NetworkStream.NetworkStream(), System.Net.Sockets.Socket.Connect(), and System.Net.Sockets.Socket.DuplicateAndClose().