19 references to SocketType
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
1168Socket socket = new Socket(templateSocket.AddressFamily, templateSocket.SocketType, templateSocket.ProtocolType);
System.Net.Sockets (18)
System\Net\Sockets\NetworkStream.cs (1)
61if (socket.SocketType != SocketType.Stream)
System\Net\Sockets\Socket.cs (15)
727if (OperatingSystem.IsWasi() || SocketType == SocketType.Stream) 1170if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramSent(); 1217if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramSent(); 1262if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramSent(); 1370if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramSent(); 1452if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramSent(); 1493if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramSent(); 1559if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived(); 1600if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived(); 1657if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived(); 1697if (errorCode == SocketError.Success && SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived(); 1784if (errorCode == SocketError.Success && SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived(); 1847if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived(); 1971if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived(); 2044if (SocketType == SocketType.Dgram) SocketsTelemetry.Log.DatagramReceived();
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
846if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(_connectSocket?.SocketType, SocketAsyncOperation.Connect, internalArgs.BytesTransferred); 1010if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(_currentSocket?.SocketType, _completedOperation, bytesTransferred);