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();
214 references to NetEventSource
System.Net.Sockets (214)
src\runtime\src\libraries\Common\src\System\Net\DebugSafeHandleMinusOneIsInvalid.cs (4)
20if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Creating SafeHandle"); 25if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
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)
262if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} Following 'non-abortive' branch."); 293if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle}, setsockopt():{errorCode}"); 329if (NetEventSource.Log.IsEnabled()) 331NetEventSource.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); 283if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetAvailable returns errorCode:{errorCode}"); 418if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"value:{value} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}"); 455if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"_isConnected:{_isConnected}"); 793if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localEP); 797if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"localEP:{localEP}"); 853if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"DST:{remoteEP}"); 985if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"timeout = {_closeTimeout}"); 995if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"timeout = {_closeTimeout}"); 1014if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, backlog); 1051if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint}"); 1093if (NetEventSource.Log.IsEnabled()) NetEventSource.Accepted(socket, socket.RemoteEndPoint!, socket.LocalEndPoint); 1152if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}"); 1163if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1199if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}"); 1211if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1220if (NetEventSource.Log.IsEnabled()) 1222NetEventSource.Info(this, $"Send returns:{bytesTransferred}"); 1223NetEventSource.DumpBuffer(this, buffer, offset, bytesTransferred); 1256if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1344if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}"); 1360if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} size:{size} remoteEP:{remoteEP}"); 1383if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer, offset, size); 1549if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}"); 1560if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1569if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer, offset, bytesTransferred); 1601if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1647if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}"); 1658if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1720if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, errorCode); 1807if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, errorCode); 1822if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC{LocalEndPoint} size:{size} remoteEP:{remoteEP}"); 1844if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 1889if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer, offset, size); 1968if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 2044if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 2070if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"WindowsIoctl returns errorCode:{errorCode}"); 2090if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}"); 2099if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}"); 2104if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetSockOpt returns errorCode:{errorCode}"); 2125if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}"); 2182if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetSockOpt optionLevel:{optionLevel} optionName:{optionName} returns errorCode:{errorCode}"); 2217if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt returns errorCode:{errorCode}"); 2242if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt returns errorCode:{errorCode}"); 2266if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt returns errorCode:{errorCode}"); 2303if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetRawSockOpt optionLevel:{optionLevel} optionName:{optionName} returned errorCode:{errorCode}"); 2358if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Poll returns socketCount:{(int)errorCode}"); 2483if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"UnsafeNclNativeMethods.OSSOCK.DisConnectEx returns:{errorCode}"); 2574if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"::DoBeginSendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}"); 2674if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"size:{size}"); 2689if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"size:{size} returning AsyncResult:{asyncResult}"); 2819if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"how:{how}"); 2824if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Shutdown returns errorCode:{errorCode}"); 2919if (NetEventSource.Log.IsEnabled()) NetEventSource.ConnectedAsyncDns(this); 3387if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 3396if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"connection to:{endPointSnapshot}"); 3402if (NetEventSource.Log.IsEnabled()) NetEventSource.Connected(this, LocalEndPoint, RemoteEndPoint); 3407if (NetEventSource.Log.IsEnabled()) 3411NetEventSource.Info(this, $"disposing:{disposing} Disposed:{Disposed}"); 3432if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.Dispose()"); 3445if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.CloseAsIs()"); 3457if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} ioctlsocket(FIONBIO):{errorCode}"); 3463if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.CloseAsIs()"); 3470if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} shutdown():{errorCode}"); 3478if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} setsockopt():{errorCode}"); 3488if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} recv():{errorCode}"); 3500if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} ioctlsocket(FIONREAD):{errorCode}"); 3525if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.CloseAsIs() for non-owned handle"); 3548if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"timeout = {_closeTimeout}"); 3621if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "skipping the call"); 3628if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetSockOpt returns errorCode:{errorCode}"); 3662if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetMulticastOption returns errorCode:{errorCode}"); 3676if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetIPv6MulticastOption returns errorCode:{errorCode}"); 3691if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetLingerOption returns errorCode:{errorCode}"); 3707if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetLingerOption returns errorCode:{errorCode}"); 3723if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetMulticastOption returns errorCode:{errorCode}"); 3740if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetIPv6MulticastOption returns errorCode:{errorCode}"); 3773if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetBlocking returns errorCode:{errorCode}"); 3782if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"errorCode:{errorCode} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}"); 3865if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "now connected"); 3911if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "!Disposed"); 3928if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException, memberName: callerName); 3944if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"errorCode:{errorCode}, disconnectOnFailure:{disconnectOnFailure}"); 3951if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Invalidating socket.");
System\Net\Sockets\SocketAsyncEventArgs.cs (5)
996if (NetEventSource.Log.IsEnabled() && bytesTransferred > 0) 1014if (NetEventSource.Log.IsEnabled()) 1018NetEventSource.Accepted(_acceptSocket, _acceptSocket.RemoteEndPoint, _acceptSocket.LocalEndPoint); 1035if (NetEventSource.Log.IsEnabled()) 1039NetEventSource.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); 1153if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, socket); 2171if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, res);
System\Net\Sockets\TCPClient.cs (6)
33if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, family); 49if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localEP); 61if (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)
223if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this);