MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ connect_target()

std::expected< UdsTransport::Protocol::endpoint, std::string > MayaFlux::Core::UdsTransport::connect_target ( const EndpointInfo & info)
static

Definition at line 136 of file UDSBackend.cpp.

137{
138 const auto resolved = Platform::resolve_unix_socket_path(source_of(info.remote_path));
139 if (!resolved) {
140 return std::unexpected(refusal(resolved.error()));
141 }
142 if (resolved->u8string().size() > Platform::unix_socket_path_limit) {
143 return std::unexpected("socket path too long: " + resolved->string());
144 }
145 return Protocol::endpoint(resolved->string());
146}
constexpr size_t unix_socket_path_limit
Acquired< std::filesystem::path > resolve_unix_socket_path(const UnixSocketSource &source)
Resolve a Unix socket request to a path, for a client that connects to an existing socket.

References MayaFlux::Core::EndpointInfo::remote_path, MayaFlux::Platform::resolve_unix_socket_path(), and MayaFlux::Platform::unix_socket_path_limit.

Here is the call graph for this function: