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;
301public unsafe EndPoint? LocalEndPoint
349public unsafe EndPoint? RemoteEndPoint
796public void Bind(EndPoint localEP)
808private void DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
837public void Connect(EndPoint remoteEP)
1098EndPoint? remoteEndPoint = socketAddress.Size > 0 ? _rightEndPoint.Create(socketAddress) : null;
1357public int SendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP)
1395public int SendTo(byte[] buffer, int size, SocketFlags socketFlags, EndPoint remoteEP)
1402public int SendTo(byte[] buffer, SocketFlags socketFlags, EndPoint remoteEP)
1409public int SendTo(byte[] buffer, EndPoint remoteEP)
1420/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param>
1425public int SendTo(ReadOnlySpan<byte> buffer, EndPoint remoteEP)
1437/// <param name="remoteEP">The <see cref="EndPoint"/> that represents the destination for the data.</param>
1442public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP)
1679public int ReceiveMessageFrom(byte[] buffer, int offset, int size, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation)
1693EndPoint endPointSnapshot = remoteEP;
1742/// An <see cref="EndPoint"/>, passed by reference, that represents the remote server.
1751/// <exception cref="ArgumentNullException">The <see cref="EndPoint"/> remoteEP is null.</exception>
1752/// <exception cref="ArgumentException">The <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in
1753/// <see cref="Socket.ReceiveMessageFrom(Span{byte}, ref SocketFlags, ref EndPoint, out IPPacketInformation)"/>
1754/// needs to match the <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in SendTo.</exception>
1758public int ReceiveMessageFrom(Span<byte> buffer, ref SocketFlags socketFlags, ref EndPoint remoteEP, out IPPacketInformation ipPacketInformation)
1780EndPoint endPointSnapshot = remoteEP;
1820public int ReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP)
1834EndPoint endPointSnapshot = remoteEP;
1901public int ReceiveFrom(byte[] buffer, int size, SocketFlags socketFlags, ref EndPoint remoteEP)
1908public int ReceiveFrom(byte[] buffer, SocketFlags socketFlags, ref EndPoint remoteEP)
1915public int ReceiveFrom(byte[] buffer, ref EndPoint remoteEP)
1926/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param>
1931public int ReceiveFrom(Span<byte> buffer, ref EndPoint remoteEP)
1941/// <param name="remoteEP">An <see cref="EndPoint"/>, passed by reference, that represents the remote server.</param>
1946public int ReceiveFrom(Span<byte> buffer, SocketFlags socketFlags, ref EndPoint remoteEP)
1958EndPoint endPointSnapshot = remoteEP;
2464public IAsyncResult BeginConnect(EndPoint remoteEP, AsyncCallback? callback, object? state) =>
2588public IAsyncResult BeginSendTo(byte[] buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback? callback, object? state)
2677public IAsyncResult BeginReceiveMessageFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state)
2692EndPoint resultEp = t.Result.RemoteEndPoint;
2700public int EndReceiveMessageFrom(IAsyncResult asyncResult, ref SocketFlags socketFlags, ref EndPoint endPoint, out IPPacketInformation ipPacketInformation)
2720public IAsyncResult BeginReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, AsyncCallback? callback, object? state)
2733EndPoint resultEp = t.Result.RemoteEndPoint;
2740public int EndReceiveFrom(IAsyncResult asyncResult, ref EndPoint endPoint)
2920EndPoint? endPointSnapshot = e.RemoteEndPoint;
3020EndPoint endPointSnapshot = e.RemoteEndPoint;
3116EndPoint? endPointSnapshot = e.RemoteEndPoint;
3192EndPoint endPointSnapshot = e.RemoteEndPoint;
3284EndPoint? endPointSnapshot = e.RemoteEndPoint;
3307EndPoint? oldEndPoint = _rightEndPoint;
3350internal static int GetAddressSize(EndPoint endPoint)
3359private SocketAddress Serialize(ref EndPoint remoteEP)
3378private void DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
3807internal Socket CreateAcceptSocket(SafeSocketHandle fd, EndPoint? remoteEP)
3815internal Socket UpdateAcceptSocket(Socket socket, EndPoint? remoteEP)
3892private static bool IsWildcardEndPoint(EndPoint? endPoint)
3981private 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) =>