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)
271
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} Following 'non-abortive' branch.");
302
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle}, setsockopt():{errorCode}");
338
if (
NetEventSource
.Log.IsEnabled())
340
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);
283
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetAvailable returns errorCode:{errorCode}");
418
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"value:{value} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}");
455
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"_isConnected:{_isConnected}");
793
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, localEP);
797
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"localEP:{localEP}");
853
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"DST:{remoteEP}");
985
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
995
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
1014
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, backlog);
1051
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint}");
1095
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Accepted(socket, remoteEndPoint, socket.LocalEndPoint);
1154
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1165
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1201
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1213
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1222
if (
NetEventSource
.Log.IsEnabled())
1224
NetEventSource
.Info(this, $"Send returns:{bytesTransferred}");
1225
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1258
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1346
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
1362
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1385
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1551
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}");
1562
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1571
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, bytesTransferred);
1603
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1649
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}");
1660
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, new SocketException((int)errorCode));
1722
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1809
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, errorCode);
1824
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SRC{LocalEndPoint} size:{size} remoteEP:{remoteEP}");
1846
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
1891
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.DumpBuffer(this, buffer, offset, size);
1970
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
2046
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
2072
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"WindowsIoctl returns errorCode:{errorCode}");
2092
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2101
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2106
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
2127
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}");
2184
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt optionLevel:{optionLevel} optionName:{optionName} returns errorCode:{errorCode}");
2219
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2244
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2268
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetSockOpt returns errorCode:{errorCode}");
2305
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetRawSockOpt optionLevel:{optionLevel} optionName:{optionName} returned errorCode:{errorCode}");
2360
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Poll returns socketCount:{(int)errorCode}");
2485
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"UnsafeNclNativeMethods.OSSOCK.DisConnectEx returns:{errorCode}");
2576
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"::DoBeginSendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}");
2676
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size}");
2691
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"size:{size} returning AsyncResult:{asyncResult}");
2821
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"how:{how}");
2826
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"Shutdown returns errorCode:{errorCode}");
2921
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.ConnectedAsyncDns(this);
3389
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException);
3398
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"connection to:{endPointSnapshot}");
3404
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Connected(this, LocalEndPoint, RemoteEndPoint);
3409
if (
NetEventSource
.Log.IsEnabled())
3413
NetEventSource
.Info(this, $"disposing:{disposing} Disposed:{Disposed}");
3434
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.Dispose()");
3447
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3459
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONBIO):{errorCode}");
3465
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs()");
3472
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} shutdown():{errorCode}");
3480
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} setsockopt():{errorCode}");
3490
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} recv():{errorCode}");
3502
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"handle:{handle} ioctlsocket(FIONREAD):{errorCode}");
3527
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "Calling _handle.CloseAsIs() for non-owned handle");
3550
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"timeout = {_closeTimeout}");
3623
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "skipping the call");
3630
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetSockOpt returns errorCode:{errorCode}");
3664
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetMulticastOption returns errorCode:{errorCode}");
3678
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetIPv6MulticastOption returns errorCode:{errorCode}");
3693
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetLingerOption returns errorCode:{errorCode}");
3709
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetLingerOption returns errorCode:{errorCode}");
3725
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetMulticastOption returns errorCode:{errorCode}");
3742
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"GetIPv6MulticastOption returns errorCode:{errorCode}");
3775
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"SetBlocking returns errorCode:{errorCode}");
3784
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, $"errorCode:{errorCode} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}");
3867
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "now connected");
3913
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this, "!Disposed");
3930
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, socketException, memberName: callerName);
3946
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Error(this, $"errorCode:{errorCode}, disconnectOnFailure:{disconnectOnFailure}");
3953
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);
1153
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(null, socket);
2171
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)
223
if (
NetEventSource
.Log.IsEnabled())
NetEventSource
.Info(this);