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