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)
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)
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)
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\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) =>