7 types derived from EndPoint
Microsoft.AspNetCore.Connections.Abstractions (3)
FileHandleEndPoint.cs (1)
12public class FileHandleEndPoint : EndPoint
NamedPipeEndPoint.cs (1)
12public sealed class NamedPipeEndPoint : EndPoint
UriEndPoint.cs (1)
12public class UriEndPoint : EndPoint
System.Net.Primitives (2)
System\Net\DnsEndPoint.cs (1)
9public class DnsEndPoint : EndPoint
System\Net\IPEndPoint.cs (1)
13public class IPEndPoint : EndPoint
System.Net.Sockets (2)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
12public sealed partial class UnixDomainSocketEndPoint : EndPoint
System\Net\Sockets\UnixDomainSocketEndPoint.Unix.cs (1)
10public sealed partial class UnixDomainSocketEndPoint : EndPoint
288 references to EndPoint
ClientSample (4)
Tcp\TcpConnection.cs (2)
22private readonly EndPoint _endPoint; 27public TcpConnection(EndPoint endPoint)
Tcp\TcpHubConnectionBuilderExtensions.cs (2)
38public static IHubConnectionBuilder WithEndPoint(this IHubConnectionBuilder builder, EndPoint endPoint) 48public ValueTask<ConnectionContext> ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken = default)
InMemory.FunctionalTests (8)
src\Servers\Kestrel\shared\TransportConnection.cs (2)
27public override EndPoint? LocalEndPoint { get; set; } 28public override EndPoint? RemoteEndPoint { get; set; }
TestTransport\InMemoryTransportFactory.cs (2)
17public EndPoint EndPoint { get; set; } 38public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default)
TestTransport\MockMultiplexedConnectionListenerFactory.cs (4)
15public Action<EndPoint, IFeatureCollection> OnBindAsync { get; set; } 17public ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default) 26public MockMultiplexedConnectionListener(EndPoint endpoint) 31public EndPoint EndPoint { get; }
Microsoft.AspNetCore.Connections.Abstractions (30)
BaseConnectionContext.cs (2)
41public virtual EndPoint? LocalEndPoint { get; set; } 46public virtual EndPoint? RemoteEndPoint { get; set; }
DefaultConnectionContext.cs (2)
93public override EndPoint? LocalEndPoint { get; set; } 96public override EndPoint? RemoteEndPoint { get; set; }
Features\IConnectionEndpointFeature.cs (4)
14/// Gets or sets the local <see cref="EndPoint"/>. 16EndPoint? LocalEndPoint { get; set; } 19/// Gets or sets the remote <see cref="EndPoint"/>. 21EndPoint? RemoteEndPoint { get; set; }
IConnectionFactory.cs (2)
18/// <param name="endpoint">The <see cref="EndPoint"/> to connect to.</param> 23ValueTask<ConnectionContext> ConnectAsync(EndPoint endpoint, CancellationToken cancellationToken = default);
IConnectionListener.cs (1)
19EndPoint EndPoint { get; }
IConnectionListenerFactory.cs (4)
11/// Defines an interface that provides the mechanisms for binding to various types of <see cref="EndPoint"/>s. 16/// Creates an <see cref="IConnectionListener"/> bound to the specified <see cref="EndPoint"/>. 18/// <param name="endpoint">The <see cref="EndPoint" /> to bind to.</param> 21ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default);
IConnectionListenerFactorySelector.cs (5)
9/// Defines an interface that determines whether the listener factory supports binding to the specified <see cref="EndPoint"/>. 18/// Returns a value that indicates whether the listener factory supports binding to the specified <see cref="EndPoint"/>. 20/// <param name="endpoint">The <see cref="EndPoint" /> to bind to.</param> 21/// <returns>A value that indicates whether the listener factory supports binding to the specified <see cref="EndPoint"/>.</returns> 22bool CanBind(EndPoint endpoint);
IMulitplexedConnectionListener.cs (1)
20EndPoint EndPoint { get; }
IMultiplexedConnectionFactory.cs (2)
19/// <param name="endpoint">The <see cref="EndPoint"/> to connect to.</param> 25ValueTask<MultiplexedConnectionContext> ConnectAsync(EndPoint endpoint, IFeatureCollection? features = null, CancellationToken cancellationToken = default);
IMultiplexedConnectionListenerFactory.cs (4)
12/// Defines an interface that provides the mechanisms for binding to various types of <see cref="EndPoint"/>s. 17/// Creates an <see cref="IMultiplexedConnectionListener"/> bound to the specified <see cref="EndPoint"/>. 19/// <param name="endpoint">The <see cref="EndPoint" /> to bind to.</param> 23ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection? features = null, CancellationToken cancellationToken = default);
UriEndPoint.cs (3)
10/// An <see cref="EndPoint"/> defined by a <see cref="System.Uri"/>. 17/// <param name="uri">The <see cref="System.Uri"/> defining the <see cref="EndPoint"/>.</param> 24/// The <see cref="System.Uri"/> defining the <see cref="EndPoint"/>.
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnectionFactory.cs (2)
44public async ValueTask<ConnectionContext> ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken = default) 50throw new NotSupportedException($"The provided {nameof(EndPoint)} must be of type {nameof(UriEndPoint)}.");
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
424foreach (var ep in connection.GetEndPoints())
Microsoft.AspNetCore.Server.Kestrel.Core (27)
HttpsConfigurationService.cs (2)
211public override EndPoint? LocalEndPoint 216public override EndPoint? RemoteEndPoint
Internal\Infrastructure\IConnectionListenerBase.cs (1)
16EndPoint EndPoint { get; }
Internal\Infrastructure\IConnectionListenerOfT.cs (1)
10/// Defines an interface that represents a listener bound to a specific <see cref="EndPoint"/>.
Internal\Infrastructure\KestrelTrace.General.cs (4)
57public void Http2DisabledWithHttp1AndNoTls(EndPoint endPoint) 62public void Http3DisabledWithHttp1AndNoTls(EndPoint endPoint) 107public static partial void Http2DisabledWithHttp1AndNoTls(ILogger logger, EndPoint endPoint); 110public static partial void Http3DisabledWithHttp1AndNoTls(ILogger logger, EndPoint endPoint);
Internal\Infrastructure\TransportManager.cs (7)
36public async Task<EndPoint> BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig? endpointConfig, CancellationToken cancellationToken) 65public async Task<EndPoint> BindAsync(EndPoint endPoint, MultiplexedConnectionDelegate multiplexedConnectionDelegate, ListenOptions listenOptions, CancellationToken cancellationToken) 91private static bool CanBindFactory(EndPoint endPoint, IConnectionListenerFactorySelector? selector) 206public EndPoint EndPoint => _connectionListener.EndPoint; 227public EndPoint EndPoint => _multiplexedConnectionListener.EndPoint;
Internal\KestrelServerImpl.cs (1)
181var configuredEndpoint = options.EndPoint;
KestrelServerOptions.cs (4)
493Listen((EndPoint)endPoint); 500public void Listen(EndPoint endPoint) 511Listen((EndPoint)endPoint, configure); 518public void Listen(EndPoint endPoint, Action<ListenOptions> configure)
ListenOptions.cs (3)
25internal ListenOptions(EndPoint endPoint) 46/// Gets the <see cref="System.Net.EndPoint"/>. 48public EndPoint EndPoint { get; internal set; }
Middleware\LoggingMultiplexedConnectionMiddleware.cs (4)
79public override EndPoint? LocalEndPoint { get => _inner.LocalEndPoint; set => _inner.LocalEndPoint = value; } 80public override EndPoint? RemoteEndPoint { get => _inner.RemoteEndPoint; set => _inner.RemoteEndPoint = value; } 125public override EndPoint? LocalEndPoint { get => _inner.LocalEndPoint; set => _inner.LocalEndPoint = value; } 126public override EndPoint? RemoteEndPoint { get => _inner.RemoteEndPoint; set => _inner.RemoteEndPoint = value; }
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
ConnectionDispatcherTests.cs (1)
128public EndPoint EndPoint { get; set; }
KestrelServerTests.cs (21)
553.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>())) 554.Returns<EndPoint, CancellationToken>((e, token) => 610.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>())) 611.Returns<EndPoint, CancellationToken>((e, token) => 669.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>())) 670.Returns<EndPoint, CancellationToken>((e, token) => 805.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>())) 806.Returns<EndPoint, CancellationToken>((e, token) => 943.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>())) 944.Returns<EndPoint, CancellationToken>((e, token) => 991public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default) 993EndPoint resolvedEndPoint = endpoint; 1013public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default) 1021public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default) 1026public bool CanBind(EndPoint endpoint) => false; 1031public ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default) 1036public bool CanBind(EndPoint endpoint) => false; 1043public ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default) 1045EndPoint resolvedEndPoint = endpoint; 1063private record BindDetail(EndPoint OriginalEndPoint, EndPoint BoundEndPoint);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (8)
InMemoryTransportBenchmark.cs (6)
108private readonly Dictionary<EndPoint, IReadOnlyList<InMemoryConnection>> _connections = 109new Dictionary<EndPoint, IReadOnlyList<InMemoryConnection>>(); 111public IReadOnlyDictionary<EndPoint, IReadOnlyList<InMemoryConnection>> Connections => _connections; 118public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default) 138public InMemoryTransport(EndPoint endpoint, IReadOnlyList<InMemoryConnection> connections) 144public EndPoint EndPoint { get; }
src\Servers\Kestrel\shared\TransportConnection.cs (2)
27public override EndPoint? LocalEndPoint { get; set; } 28public override EndPoint? RemoteEndPoint { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (5)
Internal\NamedPipeConnectionListener.cs (1)
99public EndPoint EndPoint => _endpoint;
Internal\NamedPipeTransportFactory.cs (2)
35public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default) 68public bool CanBind(EndPoint endpoint)
src\Servers\Kestrel\shared\TransportConnection.cs (2)
27public override EndPoint? LocalEndPoint { get; set; } 28public override EndPoint? RemoteEndPoint { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (8)
Internal\QuicConnectionListener.cs (2)
35EndPoint endpoint, 118public EndPoint EndPoint { get; set; }
QuicTransportFactory.cs (2)
38public async ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection? features = null, CancellationToken cancellationToken = default) 59public bool CanBind(EndPoint endpoint)
src\Servers\Kestrel\shared\TransportConnection.cs (2)
27public override EndPoint? LocalEndPoint { get; set; } 28public override EndPoint? RemoteEndPoint { get; set; }
src\Servers\Kestrel\shared\TransportMultiplexedConnection.cs (2)
21public override EndPoint? LocalEndPoint { get; set; } 22public override EndPoint? RemoteEndPoint { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicTestHelpers.cs (1)
119public static QuicClientConnectionOptions CreateClientConnectionOptions(EndPoint remoteEndPoint, bool? ignoreInvalidCertificate = null)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (11)
Client\SocketConnectionFactory.cs (1)
47public async ValueTask<ConnectionContext> ConnectAsync(EndPoint endpoint, CancellationToken cancellationToken = default)
SocketConnectionListener.cs (2)
20public EndPoint EndPoint { get; private set; } 23EndPoint endpoint,
SocketTransportFactory.cs (2)
37public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default) 45public bool CanBind(EndPoint endpoint)
SocketTransportOptions.cs (4)
111public Func<EndPoint, Socket> CreateBoundListenSocket { get; set; } = CreateDefaultBoundListenSocket; 114/// Creates a default instance of <see cref="Socket"/> for the given <see cref="EndPoint"/> 119/// An <see cref="EndPoint"/>. 124public static Socket CreateDefaultBoundListenSocket(EndPoint endpoint)
src\Servers\Kestrel\shared\TransportConnection.cs (2)
27public override EndPoint? LocalEndPoint { get; set; } 28public override EndPoint? RemoteEndPoint { get; set; }
Microsoft.AspNetCore.SignalR.Client (1)
HubConnectionBuilderHttpExtensions.cs (1)
158hubConnectionBuilder.Services.AddSingleton<EndPoint, HttpConnectionOptionsDerivedHttpEndPoint>();
Microsoft.AspNetCore.SignalR.Client.Core (8)
HubConnection.cs (5)
83private readonly EndPoint _endPoint; 198/// <param name="endPoint">The <see cref="EndPoint"/> to connect to.</param> 208public HubConnection(IConnectionFactory connectionFactory, IHubProtocol protocol, EndPoint endPoint, IServiceProvider serviceProvider, ILoggerFactory loggerFactory, IRetryPolicy reconnectPolicy) 219/// <param name="endPoint">The <see cref="EndPoint"/> to connect to.</param> 227EndPoint endPoint,
HubConnectionBuilder.cs (3)
52var endPoint = serviceProvider.GetService<EndPoint>() ?? 53throw new InvalidOperationException($"Cannot create {nameof(HubConnection)} instance. An {nameof(EndPoint)} was not configured.");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (1)
73private static Func<EndPoint, ValueTask<ConnectionContext>> GetHttpConnectionFactory(string url, ILoggerFactory loggerFactory, string path, HttpTransportType transportType, TransferFormat transferFormat)
HubProtocolVersionTests.cs (1)
242public ValueTask<ConnectionContext> ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken = default)
Microsoft.AspNetCore.SignalR.Client.Tests (9)
HttpConnectionTests.Negotiate.cs (1)
459EndPoint connectedEndpoint = null;
HubConnectionTests.ConnectionLifecycle.cs (2)
82ValueTask<ConnectionContext> ConnectionFactory(EndPoint endPoint) 114ValueTask<ConnectionContext> ConnectionFactory(EndPoint endPoint)
HubConnectionTests.cs (1)
844var mockConnection = new Mock<HubConnection>(new Mock<IConnectionFactory>().Object, new Mock<IHubProtocol>().Object, new Mock<EndPoint>().Object,
HubConnectionTests.Reconnect.cs (3)
1138public async ValueTask<ConnectionContext> ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken = default) 1181public override EndPoint LocalEndPoint { get => _inner.LocalEndPoint; set => _inner.LocalEndPoint = value; } 1182public override EndPoint RemoteEndPoint { get => _inner.RemoteEndPoint; set => _inner.RemoteEndPoint = value; }
MockHubConnection.cs (2)
19EndPoint endPoint = new Mock<EndPoint>().Object;
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (5)
TestConnectionMultiplexer.cs (5)
132public EndPoint[] GetEndPoints(bool configuredOnly = false) 152public IServer GetServer(EndPoint endpoint, object asyncState = null) 317public EndPoint IdentifyEndpoint(RedisChannel channel, CommandFlags flags = CommandFlags.None) 322public Task<EndPoint> IdentifyEndpointAsync(RedisChannel channel, CommandFlags flags = CommandFlags.None) 370public EndPoint SubscribedEndpoint(RedisChannel channel)
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
DelegateConnectionFactory.cs (3)
11private readonly Func<EndPoint, ValueTask<ConnectionContext>> _connectDelegate; 14public DelegateConnectionFactory(Func<EndPoint, ValueTask<ConnectionContext>> connectDelegate) 19public ValueTask<ConnectionContext> ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
Microsoft.Extensions.ServiceDiscovery (7)
Configuration\ConfigurationServiceEndpointProvider.cs (3)
194if (string.IsNullOrWhiteSpace(value) || !TryParseEndPoint(value, out var endPoint)) 202private static bool TryParseEndPoint(string value, [NotNullWhen(true)] out EndPoint? endPoint) 229private ServiceEndpoint CreateEndpoint(EndPoint endPoint)
Http\ResolvingHttpDelegatingHandler.cs (1)
63var endPoint = serviceEndpoint.EndPoint;
PassThrough\PassThroughServiceEndpointProvider.cs (1)
12internal sealed partial class PassThroughServiceEndpointProvider(ILogger logger, string serviceName, EndPoint endPoint) : IServiceEndpointProvider
PassThrough\PassThroughServiceEndpointProviderFactory.cs (1)
29private static bool TryCreateEndPoint(string serviceName, [NotNullWhen(true)] out EndPoint? endPoint)
UriEndPoint.cs (1)
12internal sealed class UriEndPoint(Uri uri) : EndPoint
Microsoft.Extensions.ServiceDiscovery.Abstractions (5)
Internal\ServiceEndpointImpl.cs (3)
9internal sealed class ServiceEndpointImpl(EndPoint endPoint, IFeatureCollection? features = null) : ServiceEndpoint 11public override EndPoint EndPoint { get; } = endPoint; 21_ => EndPoint.ToString()!
ServiceEndpoint.cs (2)
18public abstract EndPoint EndPoint { get; } 31public static ServiceEndpoint Create(EndPoint endPoint, IFeatureCollection? features = null) => new ServiceEndpointImpl(endPoint, features);
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsSrvServiceEndpointProvider.cs (1)
88ServiceEndpoint CreateEndpoint(EndPoint endPoint)
Microsoft.Extensions.ServiceDiscovery.Tests (4)
ServiceEndpointTests.cs (4)
11public static TheoryData<EndPoint> ZeroPortEndPoints => new() 18public static TheoryData<EndPoint> NonZeroPortEndPoints => new() 27public void ServiceEndpointToStringOmitsUnspecifiedPort(EndPoint endpoint) 36public void ServiceEndpointToStringContainsSpecifiedPort(EndPoint endpoint)
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSpecialTypesExtensions.cs (1)
23public EndPoint? P7 { get; set; }
netstandard (1)
netstandard.cs (1)
1087[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.EndPoint))]
Sockets.BindTests (5)
SocketTransportOptionsTests.cs (5)
24private async Task VerifySocketTransportCallsCreateBoundListenSocketAsync(EndPoint endpointToTest) 28Socket CreateListenSocket(EndPoint endpoint) 49public Task SocketTransportCallsCreateBoundListenSocketForNewEndpoints(EndPoint endpointToTest) 65public void CreateDefaultBoundListenSocket_BindsForNewEndPoints(EndPoint endpoint) 111private IHost CreateWebHost(EndPoint endpoint, Action<SocketTransportOptions> configureSocketOptions) =>
System (1)
src\libraries\shims\System\ref\System.cs (1)
616[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.EndPoint))]
System.Net (1)
System.Net.cs (1)
13[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.EndPoint))]
System.Net.Mail (1)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (1)
370internal static EndPoint? RemoteEndPoint => null;
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.RawSocket.cs (2)
435public SocketConfig(EndPoint endPoint, int timeout, PingOptions? options, bool isIPv4, ProtocolType protocolType, ushort id, byte[] sendBuffer) 446public EndPoint EndPoint;
System.Net.Primitives (3)
src\libraries\Common\src\System\Net\SocketAddressExtensions.cs (1)
23public static bool Equals(this SocketAddress socketAddress, EndPoint? endPoint)
System\Net\EndPoint.cs (1)
45public virtual EndPoint Create(SocketAddress socketAddress)
System\Net\IPEndPoint.cs (1)
154public override EndPoint Create(SocketAddress socketAddress)
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicHelpers.cs (1)
15internal static bool TryParse(this EndPoint endPoint, out string? host, out IPAddress? address, out int port)
System\Net\Quic\QuicConnectionOptions.cs (1)
192public EndPoint RemoteEndPoint { get; set; } = null!;
System.Net.Requests (1)
src\libraries\Common\src\System\Net\ContextAwareResult.cs (1)
370internal static EndPoint? RemoteEndPoint => null;
System.Net.Sockets (98)
src\libraries\Common\src\System\Net\SocketAddressExtensions.cs (1)
23public static bool Equals(this SocketAddress socketAddress, EndPoint? endPoint)
src\libraries\Common\src\System\Net\Sockets\SocketExceptionFactory.cs (1)
10private static string CreateMessage(int nativeSocketError, EndPoint endPoint)
src\libraries\Common\src\System\Net\Sockets\SocketExceptionFactory.Unix.cs (1)
8public static SocketException CreateSocketException(int socketError, EndPoint endPoint)
System\Net\Sockets\Socket.cs (57)
35internal EndPoint? _rightEndPoint; 36internal EndPoint? _remoteEndPoint; 40private EndPoint? _localEndPoint; 59private EndPoint? _pendingConnectRightEndPoint; 294public EndPoint? LocalEndPoint 342public EndPoint? RemoteEndPoint 789public void Bind(EndPoint localEP) 801private void DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) 830public void Connect(EndPoint remoteEP) 1343public int SendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP) 1381public int SendTo(byte[] buffer, int size, SocketFlags socketFlags, EndPoint remoteEP) 1388public int SendTo(byte[] buffer, SocketFlags socketFlags, EndPoint remoteEP) 1395public int SendTo(byte[] buffer, EndPoint remoteEP) 1406/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param> 1411public int SendTo(ReadOnlySpan<byte> buffer, EndPoint remoteEP) 1423/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param> 1428public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP) 1665public int ReceiveMessageFrom(byte[] buffer, int offset, int size, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation) 1679EndPoint endPointSnapshot = remoteEP; 1728/// An <see cref="EndPoint"/>, passed by reference, that represents the remote server. 1737/// <exception cref="ArgumentNullException">The <see cref="EndPoint"/> remoteEP is null.</exception> 1738/// <exception cref="ArgumentException">The <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in 1739/// <see cref="Socket.ReceiveMessageFrom(Span{byte}, ref SocketFlags, ref EndPoint, out IPPacketInformation)"/> 1740/// needs to match the <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in SendTo.</exception> 1744public int ReceiveMessageFrom(Span<byte> buffer, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation) 1766EndPoint endPointSnapshot = remoteEP; 1806public int ReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP) 1820EndPoint endPointSnapshot = remoteEP; 1887public int ReceiveFrom(byte[] buffer, int size, SocketFlags socketFlags, ref EndPoint remoteEP) 1894public int ReceiveFrom(byte[] buffer, SocketFlags socketFlags, ref EndPoint remoteEP) 1901public int ReceiveFrom(byte[] buffer, ref EndPoint remoteEP) 1912/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param> 1917public int ReceiveFrom(Span<byte> buffer, ref EndPoint remoteEP) 1927/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param> 1932public int ReceiveFrom(Span<byte> buffer, SocketFlags socketFlags, ref EndPoint remoteEP) 1944EndPoint endPointSnapshot = remoteEP; 2450public IAsyncResult BeginConnect(EndPoint remoteEP, AsyncCallback? callback, object? state) => 2574public IAsyncResult BeginSendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback? callback, object? state) 2663public IAsyncResult BeginReceiveMessageFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state) 2678EndPoint resultEp = t.Result.RemoteEndPoint; 2686public int EndReceiveMessageFrom(IAsyncResult asyncResult, ref SocketFlags socketFlags, ref EndPoint endPoint, out IPPacketInformation ipPacketInformation) 2706public IAsyncResult BeginReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state) 2719EndPoint resultEp = t.Result.RemoteEndPoint; 2726public int EndReceiveFrom(IAsyncResult asyncResult, ref EndPoint endPoint) 2902EndPoint? endPointSnapshot = e.RemoteEndPoint; 2998EndPoint endPointSnapshot = e.RemoteEndPoint; 3094EndPoint? endPointSnapshot = e.RemoteEndPoint; 3165EndPoint endPointSnapshot = e.RemoteEndPoint; 3257EndPoint? endPointSnapshot = e.RemoteEndPoint; 3280EndPoint? oldEndPoint = _rightEndPoint; 3323internal static int GetAddressSize(EndPoint endPoint) 3332private SocketAddress Serialize(ref EndPoint remoteEP) 3351private void DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 3780internal Socket CreateAcceptSocket(SafeSocketHandle fd, EndPoint? remoteEP) 3788internal Socket UpdateAcceptSocket(Socket socket, EndPoint? remoteEP) 3865private static bool IsWildcardEndPoint(EndPoint? endPoint) 3954private void ValidateReceiveFromEndpointAndState(EndPoint remoteEndPoint, string remoteEndPointArgumentName)
System\Net\Sockets\Socket.Tasks.cs (20)
78public Task ConnectAsync(EndPoint remoteEP) => ConnectAsync(remoteEP, default).AsTask(); 86public ValueTask ConnectAsync(EndPoint remoteEP, CancellationToken cancellationToken) 242EndPoint ep = IPAddress.TryParse(host, out IPAddress? parsedAddress) ? (EndPoint) 366public Task<SocketReceiveFromResult> ReceiveFromAsync(ArraySegment<byte> buffer, EndPoint remoteEndPoint) => 376public Task<SocketReceiveFromResult> ReceiveFromAsync(ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint) 389public ValueTask<SocketReceiveFromResult> ReceiveFromAsync(Memory<byte> buffer, EndPoint remoteEndPoint, CancellationToken cancellationToken = default) => 400public ValueTask<SocketReceiveFromResult> ReceiveFromAsync(Memory<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint, CancellationToken cancellationToken = default) 468public Task<SocketReceiveMessageFromResult> ReceiveMessageFromAsync(ArraySegment<byte> buffer, EndPoint remoteEndPoint) => 478public Task<SocketReceiveMessageFromResult> ReceiveMessageFromAsync(ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint) 491public ValueTask<SocketReceiveMessageFromResult> ReceiveMessageFromAsync(Memory<byte> buffer, EndPoint remoteEndPoint, CancellationToken cancellationToken = default) => 502public ValueTask<SocketReceiveMessageFromResult> ReceiveMessageFromAsync(Memory<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint, CancellationToken cancellationToken = default) 630public Task<int> SendToAsync(ArraySegment<byte> buffer, EndPoint remoteEP) => 640public Task<int> SendToAsync(ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP) 653public ValueTask<int> SendToAsync(ReadOnlyMemory<byte> buffer, EndPoint remoteEP, CancellationToken cancellationToken = default) => 664public ValueTask<int> SendToAsync(ReadOnlyMemory<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP, CancellationToken cancellationToken = default) 1092EndPoint remoteEndPoint = RemoteEndPoint!; 1129EndPoint remoteEndPoint = RemoteEndPoint!; 1337EndPoint remoteEndPoint = RemoteEndPoint!; 1359EndPoint remoteEndPoint = RemoteEndPoint!;
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
43private EndPoint? _remoteEndPoint; 258public EndPoint? RemoteEndPoint
System\Net\Sockets\SocketReceiveFromResult.cs (1)
9public EndPoint RemoteEndPoint;
System\Net\Sockets\SocketReceiveMessageFromResult.cs (1)
14public EndPoint RemoteEndPoint;
System\Net\Sockets\SocketsTelemetry.cs (2)
84public Activity? ConnectStart(SocketAddress address, ProtocolType protocolType, EndPoint endPoint, bool keepActivityCurrent) 184public void AcceptStart(EndPoint address)
System\Net\Sockets\SocketTaskExtensions.cs (5)
22public static Task ConnectAsync(this Socket socket, EndPoint remoteEP) => 25public static ValueTask ConnectAsync(this Socket socket, EndPoint remoteEP, CancellationToken cancellationToken) => 56public static Task<SocketReceiveFromResult> ReceiveFromAsync(this Socket socket, ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint) => 59public static Task<SocketReceiveMessageFromResult> ReceiveMessageFromAsync(this Socket socket, ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint) => 73public static Task<int> SendToAsync(this Socket socket, ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP) =>
System\Net\Sockets\TCPListener.cs (1)
82public EndPoint LocalEndpoint
System\Net\Sockets\UDPClient.cs (3)
368EndPoint tempRemoteEP = _family == AddressFamily.InterNetwork ? 381EndPoint tempRemoteEP = _family == AddressFamily.InterNetwork ? 840EndPoint tempRemoteEP = _family == AddressFamily.InterNetwork ?
System\Net\Sockets\UnixDomainSocketEndPoint.cs (3)
112/// <summary>Creates an <see cref="EndPoint"/> instance from a <see cref="SocketAddress"/> instance.</summary> 114/// <returns>A new <see cref="EndPoint"/> instance that is initialized from the specified <see cref="SocketAddress"/> instance.</returns> 115public override EndPoint Create(SocketAddress socketAddress) => new UnixDomainSocketEndPoint(socketAddress.Buffer.Span.Slice(0, socketAddress.Size));