8 types derived from EndPoint
Microsoft.AspNetCore.Connections.Abstractions (3)
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
System.Net.Primitives (2)
System.Net.Sockets (2)
288 references to EndPoint
Aspire.Hosting.Native.Client (3)
Aspire.Hosting.Native.Core.Tests (3)
Aspire.Hosting.Native.Server (9)
Rpc\NativeRpcListener.cs (6)
33public EndPoint EndPoint => _listener?.LocalEndPoint ?? _pipeEndpoint!;
35public NativeRpcListener(EndPoint endPoint, string token, ILogger logger)
40public NativeRpcListener(EndPoint endPoint, string token, ILogger logger, NativeApplicationServer server)
45public NativeRpcListener(EndPoint endPoint, string token, ILogger logger, NativeApplicationServer server,
51public NativeRpcListener(EndPoint endPoint, string token, ILogger logger, NativeApplicationServer server,
58internal NativeRpcListener(EndPoint endPoint, string token, ILogger logger, NativeApplicationServer server,
Microsoft.AspNetCore.Connections.Abstractions (30)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (35)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LoggerMessage.g.cs (6)
765private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.EndPoint, global::System.Exception?> __Http2DisabledWithHttp1AndNoTlsCallback =
766global::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 });
773public static partial void Http2DisabledWithHttp1AndNoTls(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Net.EndPoint endPoint)
781private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.EndPoint, global::System.Exception?> __Http3DisabledWithHttp1AndNoTlsCallback =
782global::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 });
789public static partial void Http3DisabledWithHttp1AndNoTls(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Net.EndPoint endPoint)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (7)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (12)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (13)
Microsoft.AspNetCore.SignalR.Client (1)
Microsoft.AspNetCore.SignalR.Client.Core (8)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.Diagnostics.NETCore.Client (14)
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.NameResolution (6)
System.Net.Ping (2)
System.Net.Primitives (3)
System.Net.Quic (2)
System.Net.Requests (1)
System.Net.Sockets (100)
System\Net\Sockets\Socket.cs (58)
35internal EndPoint? _rightEndPoint;
36internal EndPoint? _remoteEndPoint;
40private EndPoint? _localEndPoint;
59private EndPoint? _pendingConnectRightEndPoint;
299public unsafe EndPoint? LocalEndPoint
347public unsafe EndPoint? RemoteEndPoint
794public void Bind(EndPoint localEP)
806private void DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
835public void Connect(EndPoint remoteEP)
1096EndPoint? remoteEndPoint = socketAddress.Size > 0 ? _rightEndPoint.Create(socketAddress) : null;
1355public int SendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP)
1393public int SendTo(byte[] buffer, int size, SocketFlags socketFlags, EndPoint remoteEP)
1400public int SendTo(byte[] buffer, SocketFlags socketFlags, EndPoint remoteEP)
1407public int SendTo(byte[] buffer, EndPoint remoteEP)
1418/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param>
1423public int SendTo(ReadOnlySpan<byte> buffer, EndPoint remoteEP)
1435/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param>
1440public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP)
1677public int ReceiveMessageFrom(byte[] buffer, int offset, int size, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation)
1691EndPoint endPointSnapshot = remoteEP;
1740/// An <see cref="EndPoint"/>, passed by reference, that represents the remote server.
1749/// <exception cref="ArgumentNullException">The <see cref="EndPoint"/> remoteEP is null.</exception>
1750/// <exception cref="ArgumentException">The <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in
1751/// <see cref="Socket.ReceiveMessageFrom(Span{byte}, ref SocketFlags, ref EndPoint, out IPPacketInformation)"/>
1752/// needs to match the <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in SendTo.</exception>
1756public int ReceiveMessageFrom(Span<byte> buffer, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation)
1778EndPoint endPointSnapshot = remoteEP;
1818public int ReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP)
1832EndPoint endPointSnapshot = remoteEP;
1899public int ReceiveFrom(byte[] buffer, int size, SocketFlags socketFlags, ref EndPoint remoteEP)
1906public int ReceiveFrom(byte[] buffer, SocketFlags socketFlags, ref EndPoint remoteEP)
1913public int ReceiveFrom(byte[] buffer, ref EndPoint remoteEP)
1924/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param>
1929public int ReceiveFrom(Span<byte> buffer, ref EndPoint remoteEP)
1939/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param>
1944public int ReceiveFrom(Span<byte> buffer, SocketFlags socketFlags, ref EndPoint remoteEP)
1956EndPoint endPointSnapshot = remoteEP;
2462public 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)
2651public IAsyncResult BeginReceiveMessageFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state)
2664EndPoint resultEp = t.Result.RemoteEndPoint;
2672public int EndReceiveMessageFrom(IAsyncResult asyncResult, ref SocketFlags socketFlags, ref EndPoint endPoint, out IPPacketInformation ipPacketInformation)
2690public IAsyncResult BeginReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state)
2701EndPoint resultEp = t.Result.RemoteEndPoint;
2708public int EndReceiveFrom(IAsyncResult asyncResult, ref EndPoint endPoint)
2882EndPoint? endPointSnapshot = e.RemoteEndPoint;
2982EndPoint endPointSnapshot = e.RemoteEndPoint;
3078EndPoint? endPointSnapshot = e.RemoteEndPoint;
3154EndPoint endPointSnapshot = e.RemoteEndPoint;
3246EndPoint? endPointSnapshot = e.RemoteEndPoint;
3269EndPoint? oldEndPoint = _rightEndPoint;
3312internal static int GetAddressSize(EndPoint endPoint)
3321private SocketAddress Serialize(ref EndPoint remoteEP)
3340private void DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
3769internal Socket CreateAcceptSocket(SafeSocketHandle fd, EndPoint? remoteEP)
3777internal Socket UpdateAcceptSocket(Socket socket, EndPoint? remoteEP)
3854private static bool IsWildcardEndPoint(EndPoint? endPoint)
3943private 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) =>