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