39 references to LocalEndPoint
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
54clientSocket.Connect(listener.LocalEndPoint!);
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Common\TestPortHelper.cs (1)
27return ((IPEndPoint)socket.LocalEndPoint).Port;
Deployers\NginxDeployer.cs (1)
47builder.Port = ((IPEndPoint)_portSelector.LocalEndPoint).Port;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
54clientSocket.Connect(listener.LocalEndPoint!);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionListenerTests.cs (1)
293var port = ((IPEndPoint)socket.LocalEndPoint).Port;
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (4)
Internal\SocketConnection.cs (1)
55LocalEndPoint = _socket.LocalEndPoint;
SocketConnectionListener.cs (3)
51Debug.Assert(listenSocket.LocalEndPoint != null); 52EndPoint = listenSocket.LocalEndPoint; 70if (acceptSocket.LocalEndPoint is IPEndPoint)
Sockets.BindTests (9)
SocketTransportOptionsTests.cs (4)
68Assert.NotNull(listenSocket.LocalEndPoint); 79Assert.NotNull(fileHandleSocket.LocalEndPoint); 80Assert.Equal(fileHandleSocket.LocalEndPoint, listenSocket.LocalEndPoint);
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (5)
542var port = ((IPEndPoint)socket.LocalEndPoint).Port; 577var port = ((IPEndPoint)socket.LocalEndPoint).Port; 945port = ((IPEndPoint)socket.LocalEndPoint).Port; 1203return ((IPEndPoint)socket.LocalEndPoint).Port; 1218RemoteEndPoint = serverSocket.LocalEndPoint
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ListenHandleTests.cs (1)
39using (var connection = new TestConnection(((IPEndPoint)_canListenToOpenTcpSocketHandleSocket.LocalEndPoint).Port))
System.Net.HttpListener (1)
System\Net\Managed\HttpConnection.cs (1)
156_localEndPoint = (IPEndPoint?)_socket!.LocalEndPoint;
System.Net.Requests (3)
System\Net\FtpControlStream.cs (3)
677IPEndPoint localEndPoint = new IPEndPoint(((IPEndPoint)Socket.LocalEndPoint!).Address, 0); 1073IPEndPoint epListener = new IPEndPoint(((IPEndPoint)Socket.LocalEndPoint!).Address, 0); 1096IPEndPoint localEP = (IPEndPoint)_dataSocket!.LocalEndPoint!;
System.Net.Security (1)
System\Net\Security\NetEventSource.Security.cs (1)
57localId = ns.Socket.LocalEndPoint?.ToString();
System.Net.Sockets (14)
System\Net\Sockets\Socket.cs (11)
1008if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint}"); 1050if (NetEventSource.Log.IsEnabled()) NetEventSource.Accepted(socket, socket.RemoteEndPoint!, socket.LocalEndPoint); 1097if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}"); 1140if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}"); 1268if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}"); 1282if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} size:{size} remoteEP:{remoteEP}"); 1449if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint} size:{size}"); 1537if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC:{LocalEndPoint} DST:{RemoteEndPoint}"); 1706if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SRC{LocalEndPoint} size:{size} remoteEP:{remoteEP}"); 2432if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"::DoBeginSendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}"); 3226if (NetEventSource.Log.IsEnabled()) NetEventSource.Connected(this, LocalEndPoint, RemoteEndPoint);
System\Net\Sockets\SocketAsyncEventArgs.cs (2)
881NetEventSource.Accepted(_acceptSocket, _acceptSocket.RemoteEndPoint, _acceptSocket.LocalEndPoint); 902NetEventSource.Connected(_currentSocket!, _currentSocket!.LocalEndPoint, _currentSocket.RemoteEndPoint);
System\Net\Sockets\TCPListener.cs (1)
86return _active ? _serverSocket!.LocalEndPoint! : _serverSocketEP;
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
472localIPEndpoint = (IPEndPoint)_socket.LocalEndPoint;