net/StaticSocketAddress: add method GetLocalPath()
This commit is contained in:
		
				
					committed by
					
						
						Max Kellermann
					
				
			
			
				
	
			
			
			
						parent
						
							6200c0dc46
						
					
				
				
					commit
					2a206ef309
				
			@@ -104,6 +104,14 @@ public:
 | 
			
		||||
	 */
 | 
			
		||||
	[[gnu::pure]]
 | 
			
		||||
	std::string_view GetLocalRaw() const noexcept;
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * @see SocketAddress::GetLocalPath()
 | 
			
		||||
	 */
 | 
			
		||||
	[[nodiscard]] [[gnu::pure]]
 | 
			
		||||
	const char *GetLocalPath() const noexcept {
 | 
			
		||||
		return static_cast<const SocketAddress>(*this).GetLocalPath();
 | 
			
		||||
	}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_TCP
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user