int JoinHostPort(grpc_core::UniquePtr< char > *out, const char *host, int port)
Given a host and port, creates a newly-allocated string of the form "host:port" or "[ho:st]:port",...
bool SplitHostPort(StringView name, StringView *host, StringView *port)
Given a name in the form "host:port" or "[ho:st]:port", split into hostname and port number.