1 instantiation of NetEventSource
System.Net.Sockets (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38
public static readonly NetEventSource Log = new
NetEventSource
();
210 references to NetEventSource
System.Net.Sockets (210)
src\runtime\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)
80
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"shouldClose={shouldClose}");
101
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"abortive={abortive}, shouldClose ={shouldClose}");
141
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle}");
System\Net\Sockets\SafeSocketHandle.Unix.cs (6)
267
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} Following 'non-abortive' branch.");
298
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle}, setsockopt():{errorCode}");
334
if (
NetEventSource
.Log.IsEnabled())
336
NetEventSource
.Info(this, remappedError ?
System\Net\Sockets\SafeSocketHandle.Unix.OptionTracking.cs (8)
45
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetLingerOption returned errorCode:{errorCode}");
74
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt({level},{name}) returned errorCode:{errorCode}");
91
if (
NetEventSource
.Log.IsEnabled() && errorCode != SocketError.Success)
NetEventSource
.Info(this, $"SetLingerOption returned errorCode:{errorCode}");
104
if (
NetEventSource
.Log.IsEnabled() && errorCode != SocketError.Success)
NetEventSource
.Info(this, $"GetSockOpt({level},{name}) returned errorCode:{errorCode}");
System\Net\Sockets\Socket.cs (163)
84
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, addressFamily);
286
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetAvailable returns errorCode:{errorCode}");
421
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"value:{value} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}");
458
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"_isConnected:{_isConnected}");
796
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localEP);
800
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"localEP:{localEP}");
856
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"DST:{remoteEP}");
988
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
998
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
1017
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, backlog);
1054
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint}");
1098
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Accepted(socket, remoteEndPoint, socket.LocalEndPoint);
1157
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1168
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1204
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1216
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1225
if (
NetEventSource
.Log.IsEnabled())
1227
NetEventSource
.Info(this, $"Send returns:{bytesTransferred}");
1228
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1261
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1349
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
1365
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1388
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1554
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1565
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1574
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1606
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1652
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1663
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1725
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1812
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1827
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1849
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
1894
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1973
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
2049
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
2075
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"WindowsIoctl returns errorCode:{errorCode}");
2095
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2104
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2109
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
2130
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2187
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt optionLevel:{optionLevel} optionName:{optionName} returns errorCode:{errorCode}");
2222
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2247
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2271
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2308
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetRawSockOpt optionLevel:{optionLevel} optionName:{optionName} returned errorCode:{errorCode}");
2363
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Poll returns socketCount:{(int)errorCode}");
2488
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"UnsafeNclNativeMethods.OSSOCK.DisConnectEx returns:{errorCode}");
2567
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::DoBeginSendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
2653
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size}");
2668
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size} returning AsyncResult:{asyncResult}");
2788
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"how:{how}");
2793
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Shutdown returns errorCode:{errorCode}");
2888
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.ConnectedAsyncDns(this);
3361
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
3370
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"connection to:{endPointSnapshot}");
3376
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Connected(this, LocalEndPoint, RemoteEndPoint);
3381
if (
NetEventSource
.Log.IsEnabled())
3385
NetEventSource
.Info(this, $"disposing:{disposing} Disposed:{Disposed}");
3406
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.Dispose()");
3419
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3431
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONBIO):{errorCode}");
3437
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3444
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} shutdown():{errorCode}");
3452
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} setsockopt():{errorCode}");
3462
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} recv():{errorCode}");
3474
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONREAD):{errorCode}");
3499
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs() for non-owned handle");
3522
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
3595
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "skipping the call");
3602
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
3636
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetMulticastOption returns errorCode:{errorCode}");
3650
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetIPv6MulticastOption returns errorCode:{errorCode}");
3665
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetLingerOption returns errorCode:{errorCode}");
3681
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetLingerOption returns errorCode:{errorCode}");
3697
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetMulticastOption returns errorCode:{errorCode}");
3714
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetIPv6MulticastOption returns errorCode:{errorCode}");
3747
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetBlocking returns errorCode:{errorCode}");
3756
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"errorCode:{errorCode} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}");
3839
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "now connected");
3885
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "!Disposed");
3902
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException, memberName: callerName);
3918
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"errorCode:{errorCode}, disconnectOnFailure:{disconnectOnFailure}");
3925
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Invalidating socket.");
System\Net\Sockets\SocketAsyncEventArgs.cs (5)
1000
if (
NetEventSource
.Log.IsEnabled() && bytesTransferred > 0)
1022
if (
NetEventSource
.Log.IsEnabled())
1026
NetEventSource
.Accepted(_acceptSocket, remoteEndPoint, _acceptSocket.LocalEndPoint);
1043
if (
NetEventSource
.Log.IsEnabled())
1047
NetEventSource
.Connected(_currentSocket!, _currentSocket!.LocalEndPoint, _currentSocket.RemoteEndPoint);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (3)
333
Debug.Assert(
NetEventSource
.Log.IsEnabled());
337
NetEventSource
.DumpBuffer(this, _buffer, _offset, size);
341
NetEventSource
.DumpBuffer(this, _acceptBuffer, 0, size);
System\Net\Sockets\SocketPal.Unix.cs (6)
96
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, socket);
1187
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, socket);
2205
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, res);
System\Net\Sockets\TCPClient.cs (6)
34
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, family);
50
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localEP);
62
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)
224
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this);