15 references to InvalidArgument
ClientSample (1)
Tcp\TcpConnection.cs (1)
123
ex.SocketErrorCode == SocketError.
InvalidArgument
)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketConnection.cs (1)
432
(errorCode == SocketError.
InvalidArgument
&& !OperatingSystem.IsWindows());
System.Net.NameResolution (1)
System\Net\NameResolutionPal.Unix.cs (1)
37
return SocketError.
InvalidArgument
;
System.Net.Ping (2)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
54
{ Interop.Error.EINVAL, SocketError.
InvalidArgument
},
104
{ SocketError.
InvalidArgument
, Interop.Error.EINVAL },
System.Net.Primitives (3)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
54
{ Interop.Error.EINVAL, SocketError.
InvalidArgument
},
104
{ SocketError.
InvalidArgument
, Interop.Error.EINVAL },
System\Net\IPAddressParser.cs (1)
45
throw new FormatException(SR.dns_bad_ip_address, new SocketException(SocketError.
InvalidArgument
));
System.Net.Sockets (7)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
54
{ Interop.Error.EINVAL, SocketError.
InvalidArgument
},
104
{ SocketError.
InvalidArgument
, Interop.Error.EINVAL },
System\Net\Sockets\Socket.cs (2)
215
case SocketError.
InvalidArgument
:
807
UpdateStatusAfterSocketErrorAndThrowException(SocketError.
InvalidArgument
);
System\Net\Sockets\Socket.Unix.cs (1)
199
throw new SocketException((int)SocketError.
InvalidArgument
);
System\Net\Sockets\SocketPal.Unix.cs (1)
2147
exc is ArgumentException ? SocketError.
InvalidArgument
:
System\Net\Sockets\SocketsTelemetry.cs (1)
248
SocketError.
InvalidArgument
=> "invalid_argument",