1 instantiation of NetEventSource
System.Net.Sockets (1)
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\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\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)
196if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} Following 'non-abortive' branch."); 227if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle}, setsockopt():{errorCode}"); 263if (NetEventSource.Log.IsEnabled()) 265NetEventSource.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); 281if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetAvailable returns errorCode:{errorCode}"); 416if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"value:{value} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}"); 453if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"_isConnected:{_isConnected}"); 791if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localEP); 795if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"localEP:{localEP}"); 851if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"DST:{remoteEP}"); 983if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"timeout = {_closeTimeout}"); 993if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"timeout = {_closeTimeout}"); 1012if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, backlog); 1049if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint}"); 1091if (NetEventSource.Log.IsEnabled()) NetEventSource.Accepted(socket, socket.RemoteEndPoint!, socket.LocalEndPoint); 1150if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}"); 1161if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1197if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}"); 1209if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1218if (NetEventSource.Log.IsEnabled()) 1220NetEventSource.Info(this, $"Send returns:{bytesTransferred}"); 1221NetEventSource.DumpBuffer(this, buffer, offset, bytesTransferred); 1254if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1335if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}"); 1351if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} size:{size} remoteEP:{remoteEP}"); 1374if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer, offset, size); 1540if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}"); 1551if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1560if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer, offset, bytesTransferred); 1592if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1638if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}"); 1649if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, new SocketException((int)errorCode)); 1711if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, errorCode); 1798if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, errorCode); 1813if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC{LocalEndPoint} size:{size} remoteEP:{remoteEP}"); 1835if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 1880if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer, offset, size); 1959if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 2035if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 2061if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"WindowsIoctl returns errorCode:{errorCode}"); 2081if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}"); 2090if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}"); 2095if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetSockOpt returns errorCode:{errorCode}"); 2116if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"optionLevel:{optionLevel} optionName:{optionName} optionValue:{optionValue}"); 2173if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetSockOpt optionLevel:{optionLevel} optionName:{optionName} returns errorCode:{errorCode}"); 2208if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt returns errorCode:{errorCode}"); 2233if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt returns errorCode:{errorCode}"); 2257if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetSockOpt returns errorCode:{errorCode}"); 2294if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetRawSockOpt optionLevel:{optionLevel} optionName:{optionName} returned errorCode:{errorCode}"); 2349if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Poll returns socketCount:{(int)errorCode}"); 2474if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"UnsafeNclNativeMethods.OSSOCK.DisConnectEx returns:{errorCode}"); 2565if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"::DoBeginSendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}"); 2665if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"size:{size}"); 2680if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"size:{size} returning AsyncResult:{asyncResult}"); 2810if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"how:{how}"); 2815if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Shutdown returns errorCode:{errorCode}"); 2906if (NetEventSource.Log.IsEnabled()) NetEventSource.ConnectedAsyncDns(this); 3367if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException); 3376if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"connection to:{endPointSnapshot}"); 3382if (NetEventSource.Log.IsEnabled()) NetEventSource.Connected(this, LocalEndPoint, RemoteEndPoint); 3387if (NetEventSource.Log.IsEnabled()) 3391NetEventSource.Info(this, $"disposing:{disposing} Disposed:{Disposed}"); 3412if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.Dispose()"); 3425if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.CloseAsIs()"); 3437if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} ioctlsocket(FIONBIO):{errorCode}"); 3443if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.CloseAsIs()"); 3450if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} shutdown():{errorCode}"); 3458if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} setsockopt():{errorCode}"); 3468if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} recv():{errorCode}"); 3480if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"handle:{handle} ioctlsocket(FIONREAD):{errorCode}"); 3505if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Calling _handle.CloseAsIs() for non-owned handle"); 3528if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"timeout = {_closeTimeout}"); 3601if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "skipping the call"); 3608if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetSockOpt returns errorCode:{errorCode}"); 3642if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetMulticastOption returns errorCode:{errorCode}"); 3656if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetIPv6MulticastOption returns errorCode:{errorCode}"); 3671if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetLingerOption returns errorCode:{errorCode}"); 3687if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetLingerOption returns errorCode:{errorCode}"); 3703if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetMulticastOption returns errorCode:{errorCode}"); 3720if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"GetIPv6MulticastOption returns errorCode:{errorCode}"); 3753if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SetBlocking returns errorCode:{errorCode}"); 3762if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"errorCode:{errorCode} willBlock:{_willBlock} willBlockInternal:{_willBlockInternal}"); 3845if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "now connected"); 3891if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "!Disposed"); 3908if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, socketException, memberName: callerName); 3924if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"errorCode:{errorCode}, disconnectOnFailure:{disconnectOnFailure}"); 3931if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Invalidating socket.");
System\Net\Sockets\SocketAsyncEventArgs.cs (5)
898if (NetEventSource.Log.IsEnabled() && bytesTransferred > 0) 916if (NetEventSource.Log.IsEnabled()) 920NetEventSource.Accepted(_acceptSocket, _acceptSocket.RemoteEndPoint, _acceptSocket.LocalEndPoint); 937if (NetEventSource.Log.IsEnabled()) 941NetEventSource.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)
222if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this);