19 #ifndef GRPC_CORE_LIB_GPRPP_HOST_PORT_H
20 #define GRPC_CORE_LIB_GPRPP_HOST_PORT_H
53 bool SplitHostPort(StringView name, StringView* host, StringView* port);
Round Robin Policy.
Definition: backend_metric.cc:24
std::unique_ptr< T, DefaultDeleteChar > UniquePtr
Definition: memory.h:45
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",...
Definition: host_port.cc:33
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.
Definition: host_port.cc:94