8 types derived from EndPoint
Microsoft.AspNetCore.Connections.Abstractions (3)
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
System.Net.Primitives (2)
System.Net.Sockets (2)
243 references to EndPoint
Microsoft.AspNetCore.Connections.Abstractions (30)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (35)
_generated\0\LoggerMessage.g.cs (6)
749private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.EndPoint, global::System.Exception?> __Http2DisabledWithHttp1AndNoTlsCallback =
750global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.EndPoint>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(64, "Http2DisabledWithHttp1AndNoTls"), "HTTP/2 is not enabled for {Endpoint}. The endpoint is configured to use HTTP/1.1 and HTTP/2, but TLS is not enabled. HTTP/2 requires TLS application protocol negotiation. Connections to this endpoint will use HTTP/1.1.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
757public static partial void Http2DisabledWithHttp1AndNoTls(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Net.EndPoint endPoint)
765private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.EndPoint, global::System.Exception?> __Http3DisabledWithHttp1AndNoTlsCallback =
766global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.EndPoint>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(65, "Http3DisabledWithHttp1AndNoTls"), "HTTP/3 is not enabled for {Endpoint}. HTTP/3 requires TLS. Connections to this endpoint will use HTTP/1.1.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
773public static partial void Http3DisabledWithHttp1AndNoTls(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Net.EndPoint endPoint)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (12)
Microsoft.AspNetCore.SignalR.Client (1)
Microsoft.AspNetCore.SignalR.Client.Core (8)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.Diagnostics.NETCore.Client (13)
Microsoft.Extensions.ServiceDiscovery (4)
Microsoft.Extensions.ServiceDiscovery.Abstractions (6)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Tests (11)
Microsoft.Gen.Logging.Generated.Tests (1)
netstandard (1)
System (1)
System.Net (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;
296public unsafe EndPoint? LocalEndPoint
344public unsafe EndPoint? RemoteEndPoint
791public void Bind(EndPoint localEP)
803private void DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
832public void Connect(EndPoint remoteEP)
1350public int SendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP)
1388public int SendTo(byte[] buffer, int size, SocketFlags socketFlags, EndPoint remoteEP)
1395public int SendTo(byte[] buffer, SocketFlags socketFlags, EndPoint remoteEP)
1402public int SendTo(byte[] buffer, EndPoint remoteEP)
1413/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param>
1418public int SendTo(ReadOnlySpan<byte> buffer, EndPoint remoteEP)
1430/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param>
1435public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP)
1672public int ReceiveMessageFrom(byte[] buffer, int offset, int size, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation)
1686EndPoint endPointSnapshot = remoteEP;
1735/// An <see cref="EndPoint"/>, passed by reference, that represents the remote server.
1744/// <exception cref="ArgumentNullException">The <see cref="EndPoint"/> remoteEP is null.</exception>
1745/// <exception cref="ArgumentException">The <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in
1746/// <see cref="Socket.ReceiveMessageFrom(Span{byte}, ref SocketFlags, ref EndPoint, out IPPacketInformation)"/>
1747/// needs to match the <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in SendTo.</exception>
1751public int ReceiveMessageFrom(Span<byte> buffer, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation)
1773EndPoint endPointSnapshot = remoteEP;
1813public int ReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP)
1827EndPoint endPointSnapshot = remoteEP;
1894public int ReceiveFrom(byte[] buffer, int size, SocketFlags socketFlags, ref EndPoint remoteEP)
1901public int ReceiveFrom(byte[] buffer, SocketFlags socketFlags, ref EndPoint remoteEP)
1908public int ReceiveFrom(byte[] buffer, ref EndPoint remoteEP)
1919/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param>
1924public int ReceiveFrom(Span<byte> buffer, ref EndPoint remoteEP)
1934/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param>
1939public int ReceiveFrom(Span<byte> buffer, SocketFlags socketFlags, ref EndPoint remoteEP)
1951EndPoint endPointSnapshot = remoteEP;
2457public IAsyncResult BeginConnect(EndPoint remoteEP, AsyncCallback? callback, object? state) =>
2581public IAsyncResult BeginSendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback? callback, object? state)
2670public IAsyncResult BeginReceiveMessageFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state)
2685EndPoint resultEp = t.Result.RemoteEndPoint;
2693public int EndReceiveMessageFrom(IAsyncResult asyncResult, ref SocketFlags socketFlags, ref EndPoint endPoint, out IPPacketInformation ipPacketInformation)
2713public IAsyncResult BeginReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state)
2726EndPoint resultEp = t.Result.RemoteEndPoint;
2733public int EndReceiveFrom(IAsyncResult asyncResult, ref EndPoint endPoint)
2913EndPoint? endPointSnapshot = e.RemoteEndPoint;
3013EndPoint endPointSnapshot = e.RemoteEndPoint;
3109EndPoint? endPointSnapshot = e.RemoteEndPoint;
3180EndPoint endPointSnapshot = e.RemoteEndPoint;
3272EndPoint? endPointSnapshot = e.RemoteEndPoint;
3295EndPoint? oldEndPoint = _rightEndPoint;
3338internal static int GetAddressSize(EndPoint endPoint)
3347private SocketAddress Serialize(ref EndPoint remoteEP)
3366private void DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
3795internal Socket CreateAcceptSocket(SafeSocketHandle fd, EndPoint? remoteEP)
3803internal Socket UpdateAcceptSocket(Socket socket, EndPoint? remoteEP)
3880private static bool IsWildcardEndPoint(EndPoint? endPoint)
3969private 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)
220EndPoint ep = IPAddress.TryParse(host, out IPAddress? parsedAddress) ? (EndPoint)
344public Task<SocketReceiveFromResult> ReceiveFromAsync(ArraySegment<byte> buffer, EndPoint remoteEndPoint) =>
354public Task<SocketReceiveFromResult> ReceiveFromAsync(ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint)
367public ValueTask<SocketReceiveFromResult> ReceiveFromAsync(Memory<byte> buffer, EndPoint remoteEndPoint, CancellationToken cancellationToken = default) =>
378public ValueTask<SocketReceiveFromResult> ReceiveFromAsync(Memory<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint, CancellationToken cancellationToken = default)
446public Task<SocketReceiveMessageFromResult> ReceiveMessageFromAsync(ArraySegment<byte> buffer, EndPoint remoteEndPoint) =>
456public Task<SocketReceiveMessageFromResult> ReceiveMessageFromAsync(ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint)
469public ValueTask<SocketReceiveMessageFromResult> ReceiveMessageFromAsync(Memory<byte> buffer, EndPoint remoteEndPoint, CancellationToken cancellationToken = default) =>
480public ValueTask<SocketReceiveMessageFromResult> ReceiveMessageFromAsync(Memory<byte> buffer, SocketFlags socketFlags, EndPoint remoteEndPoint, CancellationToken cancellationToken = default)
608public Task<int> SendToAsync(ArraySegment<byte> buffer, EndPoint remoteEP) =>
618public Task<int> SendToAsync(ArraySegment<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP)
631public ValueTask<int> SendToAsync(ReadOnlyMemory<byte> buffer, EndPoint remoteEP, CancellationToken cancellationToken = default) =>
642public ValueTask<int> SendToAsync(ReadOnlyMemory<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP, CancellationToken cancellationToken = default)
1070EndPoint remoteEndPoint = RemoteEndPoint!;
1107EndPoint remoteEndPoint = RemoteEndPoint!;
1316EndPoint remoteEndPoint = RemoteEndPoint!;
1338EndPoint 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) =>