14 instantiations of UnixDomainSocketEndPoint
Aspire.Hosting (1)
Dcp\DcpHostService.cs (1)
249
socket.Bind(new
UnixDomainSocketEndPoint
(socketPath));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
ListenOptions.cs (1)
32
EndPoint = new
UnixDomainSocketEndPoint
(socketPath);
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
52
var endPoint = new
UnixDomainSocketEndPoint
(_socketPath!);
Sockets.BindTests (1)
SocketTransportOptionsTests.cs (1)
94
new
UnixDomainSocketEndPoint
($"/tmp/{DateTime.UtcNow:yyyyMMddTHHmmss.fff}.sock")
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (2)
99
await socket.ConnectAsync(new
UnixDomainSocketEndPoint
(path)).DefaultTimeout();
167
await socket.ConnectAsync(new
UnixDomainSocketEndPoint
(path)).DefaultTimeout();
System.IO.Pipes (2)
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
42
socket.Connect(new
UnixDomainSocketEndPoint
(_normalizedPipePath!));
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
329
socket.Bind(new
UnixDomainSocketEndPoint
(path));
System.Net.Sockets (5)
System\Net\Sockets\Socket.cs (2)
174
_rightEndPoint = new
UnixDomainSocketEndPoint
(buffer.Slice(0, bufferLength));
208
_remoteEndPoint = new
UnixDomainSocketEndPoint
(buffer.Slice(0, bufferLength));
System\Net\Sockets\UnixDomainSocketEndPoint.cs (3)
115
public override EndPoint Create(SocketAddress socketAddress) => new
UnixDomainSocketEndPoint
(socketAddress.Buffer.Span.Slice(0, socketAddress.Size));
153
return new
UnixDomainSocketEndPoint
(_path, Path.GetFullPath(_path));
163
return new
UnixDomainSocketEndPoint
(_path, null);
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
779
var endpoint = new
UnixDomainSocketEndPoint
(uriPath.LocalPath);
29 references to UnixDomainSocketEndPoint
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Infrastructure\KestrelMetrics.cs (1)
346
else if (localEndpoint is
UnixDomainSocketEndPoint
udsEndPoint)
ListenOptions.cs (3)
66
/// Only set if the <see cref="ListenOptions"/> is bound to a <see cref="
UnixDomainSocketEndPoint
"/>.
68
public string? SocketPath => (EndPoint as
UnixDomainSocketEndPoint
)?.ToString();
153
case
UnixDomainSocketEndPoint
_:
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
AddressBinderTests.cs (2)
124
Assert.IsType<
UnixDomainSocketEndPoint
>(listenOptions.EndPoint);
135
Assert.IsType<
UnixDomainSocketEndPoint
>(listenOptions.EndPoint);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
SocketTransportFactory.cs (1)
50
UnixDomainSocketEndPoint
_ => true,
SocketTransportOptions.cs (1)
139
case
UnixDomainSocketEndPoint
unix:
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
52
var
endPoint = new UnixDomainSocketEndPoint(_socketPath!);
netstandard (1)
netstandard.cs (1)
1288
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
UnixDomainSocketEndPoint
))]
System.Net.Sockets (14)
System\Net\Sockets\Socket.cs (3)
824
_rightEndPoint = endPointSnapshot is
UnixDomainSocketEndPoint
unixEndPoint ?
3515
if (_rightEndPoint is
UnixDomainSocketEndPoint
unixEndPoint &&
3798
if (_rightEndPoint is
UnixDomainSocketEndPoint
unixEndPoint &&
System\Net\Sockets\SocketsTelemetry.cs (1)
126
else if (endPoint is
UnixDomainSocketEndPoint
udsEndPoint)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (10)
22
/// <summary>Initializes a new instance of the <see cref="
UnixDomainSocketEndPoint
"/> with the file path to connect a unix domain socket over.</summary>
121
/// <summary>Gets the path represented by this <see cref="
UnixDomainSocketEndPoint
"/> instance.</summary>
122
/// <returns>The path represented by this <see cref="
UnixDomainSocketEndPoint
"/> instance.</returns>
136
/// <summary>Determines whether the specified <see cref="object"/> is equal to the current <see cref="
UnixDomainSocketEndPoint
"/>.</summary>
137
/// <param name="obj">The <see cref="object"/> to compare with the current <see cref="
UnixDomainSocketEndPoint
"/>.</param>
138
/// <returns><see langword="true"/> if the specified <see cref="object"/> is equal to the current <see cref="
UnixDomainSocketEndPoint
"/>; otherwise, <see langword="false"/>.</returns>
140
=> obj is
UnixDomainSocketEndPoint
ep && _path == ep._path;
142
/// <summary>Returns a hash value for a <see cref="
UnixDomainSocketEndPoint
"/> instance.</summary>
146
internal
UnixDomainSocketEndPoint
CreateBoundEndPoint()
156
internal
UnixDomainSocketEndPoint
CreateUnboundEndPoint()
System.ServiceModel.UnixDomainSocket (5)
System\ServiceModel\Channels\SocketConnection.cs (5)
50
private
UnixDomainSocketEndPoint
_remoteEndpoint;
416
if (TryGetEndpoints(out
UnixDomainSocketEndPoint
remote))
439
private bool TryGetEndpoints(out
UnixDomainSocketEndPoint
remoteIPEndpoint)
447
remoteIPEndpoint = _remoteEndpoint ?? (
UnixDomainSocketEndPoint
)_socket.RemoteEndPoint;
779
var
endpoint = new UnixDomainSocketEndPoint(uriPath.LocalPath);