|
GRPC Core
9.0.0
|
#include <grpc/support/port_platform.h>#include "src/core/lib/gprpp/host_port.h"#include <string.h>#include <grpc/support/alloc.h>#include <grpc/support/log.h>#include <grpc/support/string_util.h>#include "src/core/lib/gprpp/string_view.h"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) |