GRPC Core
9.0.0
|
#include <grpc/support/port_platform.h>
#include "src/core/ext/filters/client_channel/parse_address.h"
#include "src/core/lib/iomgr/grpc_if_nametoindex.h"
#include "src/core/lib/iomgr/sockaddr.h"
#include "src/core/lib/iomgr/socket_utils.h"
#include <stdio.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/host_port.h"
Functions | |
bool | grpc_parse_unix (const grpc_uri *uri, grpc_resolved_address *resolved_addr) |
Populate resolved_addr from uri, whose path is expected to contain a unix socket path. More... | |
bool | grpc_parse_ipv4_hostport (const char *hostport, grpc_resolved_address *addr, bool log_errors) |
Parse bare IPv4 or IPv6 "IP:port" strings. More... | |
bool | grpc_parse_ipv4 (const grpc_uri *uri, grpc_resolved_address *resolved_addr) |
Populate resolved_addr from uri, whose path is expected to contain an IPv4 host:port pair. More... | |
bool | grpc_parse_ipv6_hostport (const char *hostport, grpc_resolved_address *addr, bool log_errors) |
bool | grpc_parse_ipv6 (const grpc_uri *uri, grpc_resolved_address *resolved_addr) |
Populate resolved_addr from uri, whose path is expected to contain an IPv6 host:port pair. More... | |
bool | grpc_parse_uri (const grpc_uri *uri, grpc_resolved_address *resolved_addr) |
Populate resolved_addr from uri. More... | |
uint16_t | grpc_strhtons (const char *port) |
bool grpc_parse_ipv4 | ( | const grpc_uri * | uri, |
grpc_resolved_address * | resolved_addr | ||
) |
Populate resolved_addr from uri, whose path is expected to contain an IPv4 host:port pair.
Returns true upon success.
bool grpc_parse_ipv4_hostport | ( | const char * | hostport, |
grpc_resolved_address * | addr, | ||
bool | log_errors | ||
) |
Parse bare IPv4 or IPv6 "IP:port" strings.
bool grpc_parse_ipv6 | ( | const grpc_uri * | uri, |
grpc_resolved_address * | resolved_addr | ||
) |
Populate resolved_addr from uri, whose path is expected to contain an IPv6 host:port pair.
Returns true upon success.
bool grpc_parse_ipv6_hostport | ( | const char * | hostport, |
grpc_resolved_address * | addr, | ||
bool | log_errors | ||
) |
bool grpc_parse_unix | ( | const grpc_uri * | uri, |
grpc_resolved_address * | resolved_addr | ||
) |
Populate resolved_addr from uri, whose path is expected to contain a unix socket path.
Returns true upon success.
bool grpc_parse_uri | ( | const grpc_uri * | uri, |
grpc_resolved_address * | resolved_addr | ||
) |
Populate resolved_addr from uri.
Returns true upon success.
uint16_t grpc_strhtons | ( | const char * | port | ) |