GRPC C++
1.26.0
|
#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 | |
Internal thread interface. | |
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) |