1 instantiation of NetEventSource
System.Net.Sockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly NetEventSource Log = new
NetEventSource
();
206 references to NetEventSource
System.Net.Sockets (206)
src\libraries\Common\src\System\Net\DebugSafeHandleMinusOneIsInvalid.cs (4)
20
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Creating SafeHandle");
25
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, _trace);
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly
NetEventSource
Log = new NetEventSource();
System\Net\Sockets\SafeSocketHandle.cs (6)
81
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"shouldClose={shouldClose}");
102
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"abortive={abortive}, shouldClose ={shouldClose}");
142
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle}");
System\Net\Sockets\SafeSocketHandle.Unix.cs (6)
240
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} Following 'non-abortive' branch.");
271
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle}, setsockopt():{errorCode}");
307
if (
NetEventSource
.Log.IsEnabled())
309
NetEventSource
.Info(this, remappedError ?
System\Net\Sockets\Socket.cs (163)
84
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, addressFamily);
273
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetAvailable returns errorCode:{errorCode}");
408
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"value:{value} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}");
445
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"_isConnected:{_isConnected}");
758
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localEP);
762
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"localEP:{localEP}");
816
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"DST:{remoteEP}");
944
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
954
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
973
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, backlog);
1008
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint}");
1050
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Accepted(socket, socket.RemoteEndPoint!, socket.LocalEndPoint);
1097
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1108
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1140
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1152
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1161
if (
NetEventSource
.Log.IsEnabled())
1163
NetEventSource
.Info(this, $"Send returns:{bytesTransferred}");
1164
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1193
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1268
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
1282
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1305
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1449
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1460
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1469
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1497
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1537
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1548
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1608
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1693
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1706
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1728
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
1773
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1844
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
1918
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
1944
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"WindowsIoctl returns errorCode:{errorCode}");
1964
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
1973
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
1978
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
1999
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2056
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt optionLevel:{optionLevel} optionName:{optionName} returns errorCode:{errorCode}");
2091
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2116
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2140
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2177
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetRawSockOpt optionLevel:{optionLevel} optionName:{optionName} returned errorCode:{errorCode}");
2230
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Poll returns socketCount:{(int)errorCode}");
2353
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"UnsafeNclNativeMethods.OSSOCK.DisConnectEx returns:{errorCode}");
2432
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::DoBeginSendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
2518
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size}");
2533
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size} returning AsyncResult:{asyncResult}");
2653
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"how:{how}");
2658
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Shutdown returns errorCode:{errorCode}");
2748
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.ConnectedAsyncDns(this);
3211
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
3220
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"connection to:{endPointSnapshot}");
3226
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Connected(this, LocalEndPoint, RemoteEndPoint);
3231
if (
NetEventSource
.Log.IsEnabled())
3235
NetEventSource
.Info(this, $"disposing:{disposing} Disposed:{Disposed}");
3256
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.Dispose()");
3269
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3281
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONBIO):{errorCode}");
3287
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3294
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} shutdown():{errorCode}");
3302
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} setsockopt():{errorCode}");
3312
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} recv():{errorCode}");
3324
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONREAD):{errorCode}");
3349
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs() for non-owned handle");
3372
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
3433
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "skipping the call");
3440
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
3474
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetMulticastOption returns errorCode:{errorCode}");
3488
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetIPv6MulticastOption returns errorCode:{errorCode}");
3501
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetLingerOption returns errorCode:{errorCode}");
3515
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetLingerOption returns errorCode:{errorCode}");
3531
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetMulticastOption returns errorCode:{errorCode}");
3548
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetIPv6MulticastOption returns errorCode:{errorCode}");
3581
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetBlocking returns errorCode:{errorCode}");
3590
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"errorCode:{errorCode} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}");
3673
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "now connected");
3719
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "!Disposed");
3736
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException, memberName: callerName);
3752
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"errorCode:{errorCode}, disconnectOnFailure:{disconnectOnFailure}");
3759
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Invalidating socket.");
System\Net\Sockets\SocketAsyncEventArgs.cs (5)
859
if (
NetEventSource
.Log.IsEnabled() && bytesTransferred > 0)
877
if (
NetEventSource
.Log.IsEnabled())
881
NetEventSource
.Accepted(_acceptSocket, _acceptSocket.RemoteEndPoint, _acceptSocket.LocalEndPoint);
898
if (
NetEventSource
.Log.IsEnabled())
902
NetEventSource
.Connected(_currentSocket!, _currentSocket!.LocalEndPoint, _currentSocket.RemoteEndPoint);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (3)
334
Debug.Assert(
NetEventSource
.Log.IsEnabled());
338
NetEventSource
.DumpBuffer(this, _buffer, _offset, size);
342
NetEventSource
.DumpBuffer(this, _acceptBuffer, 0, size);
System\Net\Sockets\SocketPal.Unix.cs (6)
93
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, socket);
1132
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, socket);
2048
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, res);
System\Net\Sockets\TCPClient.cs (6)
33
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, family);
49
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localEP);
61
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, hostname);
System\Net\Sockets\TCPListener.cs (4)
25
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localEP);
36
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localaddr);
System\Net\Sockets\UDPClient.cs (2)
222
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this);