7 types derived from EndPoint
Microsoft.AspNetCore.Connections.Abstractions (3)
System.Net.Primitives (2)
System.Net.Sockets (2)
288 references to EndPoint
ClientSample (4)
InMemory.FunctionalTests (8)
Microsoft.AspNetCore.Connections.Abstractions (30)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.Server.Kestrel.Core (27)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
KestrelServerTests.cs (21)
554.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>()))
555.Returns<EndPoint, CancellationToken>((e, token) =>
611.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>()))
612.Returns<EndPoint, CancellationToken>((e, token) =>
670.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>()))
671.Returns<EndPoint, CancellationToken>((e, token) =>
806.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>()))
807.Returns<EndPoint, CancellationToken>((e, token) =>
944.Setup(transportFactory => transportFactory.BindAsync(It.IsAny<EndPoint>(), It.IsAny<CancellationToken>()))
945.Returns<EndPoint, CancellationToken>((e, token) =>
992public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default)
994EndPoint resolvedEndPoint = endpoint;
1014public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default)
1022public ValueTask<IConnectionListener> BindAsync(EndPoint endpoint, CancellationToken cancellationToken = default)
1027public bool CanBind(EndPoint endpoint) => false;
1032public ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default)
1037public bool CanBind(EndPoint endpoint) => false;
1044public ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default)
1046EndPoint resolvedEndPoint = endpoint;
1064private record BindDetail(EndPoint OriginalEndPoint, EndPoint BoundEndPoint);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (8)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (5)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (8)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (11)
Microsoft.AspNetCore.SignalR.Client (1)
Microsoft.AspNetCore.SignalR.Client.Core (8)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (9)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (5)
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
Microsoft.Extensions.ServiceDiscovery (7)
Microsoft.Extensions.ServiceDiscovery.Abstractions (5)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Extensions.ServiceDiscovery.Tests (4)
Microsoft.Gen.Logging.Generated.Tests (1)
netstandard (1)
Sockets.BindTests (5)
System (1)
System.Net (1)
System.Net.Mail (1)
System.Net.Ping (2)
System.Net.Primitives (3)
System.Net.Quic (2)
System.Net.Requests (1)
System.Net.Sockets (98)
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)
1341public int SendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP)
1379public int SendTo(byte[] buffer, int size, SocketFlags socketFlags, EndPoint remoteEP)
1386public int SendTo(byte[] buffer, SocketFlags socketFlags, EndPoint remoteEP)
1393public int SendTo(byte[] buffer, EndPoint remoteEP)
1404/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param>
1409public int SendTo(ReadOnlySpan<byte> buffer, EndPoint remoteEP)
1421/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param>
1426public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP)
1663public int ReceiveMessageFrom(byte[] buffer, int offset, int size, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation)
1677EndPoint endPointSnapshot = remoteEP;
1726/// An <see cref="EndPoint"/>, passed by reference, that represents the remote server.
1735/// <exception cref="ArgumentNullException">The <see cref="EndPoint"/> remoteEP is null.</exception>
1736/// <exception cref="ArgumentException">The <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in
1737/// <see cref="Socket.ReceiveMessageFrom(Span{byte}, ref SocketFlags, ref EndPoint, out IPPacketInformation)"/>
1738/// needs to match the <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in SendTo.</exception>
1742public int ReceiveMessageFrom(Span<byte> buffer, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation)
1764EndPoint endPointSnapshot = remoteEP;
1804public int ReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP)
1818EndPoint endPointSnapshot = remoteEP;
1885public int ReceiveFrom(byte[] buffer, int size, SocketFlags socketFlags, ref EndPoint remoteEP)
1892public int ReceiveFrom(byte[] buffer, SocketFlags socketFlags, ref EndPoint remoteEP)
1899public int ReceiveFrom(byte[] buffer, ref EndPoint remoteEP)
1910/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param>
1915public int ReceiveFrom(Span<byte> buffer, ref EndPoint remoteEP)
1925/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param>
1930public int ReceiveFrom(Span<byte> buffer, SocketFlags socketFlags, ref EndPoint remoteEP)
1942EndPoint endPointSnapshot = remoteEP;
2448public IAsyncResult BeginConnect(EndPoint remoteEP, AsyncCallback? callback, object? state) =>
2572public IAsyncResult BeginSendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback? callback, object? state)
2661public IAsyncResult BeginReceiveMessageFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state)
2676EndPoint resultEp = t.Result.RemoteEndPoint;
2684public int EndReceiveMessageFrom(IAsyncResult asyncResult, ref SocketFlags socketFlags, ref EndPoint endPoint, out IPPacketInformation ipPacketInformation)
2704public IAsyncResult BeginReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state)
2717EndPoint resultEp = t.Result.RemoteEndPoint;
2724public int EndReceiveFrom(IAsyncResult asyncResult, ref EndPoint endPoint)
2901EndPoint? endPointSnapshot = e.RemoteEndPoint;
2993EndPoint endPointSnapshot = e.RemoteEndPoint;
3089EndPoint? endPointSnapshot = e.RemoteEndPoint;
3160EndPoint endPointSnapshot = e.RemoteEndPoint;
3252EndPoint? endPointSnapshot = e.RemoteEndPoint;
3275EndPoint? oldEndPoint = _rightEndPoint;
3318internal static int GetAddressSize(EndPoint endPoint)
3327private SocketAddress Serialize(ref EndPoint remoteEP)
3346private void DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
3775internal Socket CreateAcceptSocket(SafeSocketHandle fd, EndPoint? remoteEP)
3783internal Socket UpdateAcceptSocket(Socket socket, EndPoint? remoteEP)
3860private static bool IsWildcardEndPoint(EndPoint? endPoint)
3949private 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\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) =>