GRPC Core  9.0.0
Namespaces | Functions
host_port.h File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/memory.h"
#include "src/core/lib/gprpp/string_view.h"

Go to the source code of this file.

Namespaces

 grpc_core
 Round Robin Policy.
 

Functions

int grpc_core::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", depending on whether the host contains colons like an IPv6 literal. More...
 
bool grpc_core::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. More...
 
bool grpc_core::SplitHostPort (StringView name, grpc_core::UniquePtr< char > *host, grpc_core::UniquePtr< char > *port)