Namespaces | Functions
parse_address.h File Reference
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include "absl/strings/string_view.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/uri/uri_parser.h"
Include dependency graph for parse_address.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 grpc_core
 

Functions

bool grpc_parse_ipv4 (const grpc_core::URI &uri, grpc_resolved_address *resolved_addr)
 
bool grpc_parse_ipv4_hostport (absl::string_view hostport, grpc_resolved_address *addr, bool log_errors)
 
bool grpc_parse_ipv6 (const grpc_core::URI &uri, grpc_resolved_address *resolved_addr)
 
bool grpc_parse_ipv6_hostport (absl::string_view hostport, grpc_resolved_address *addr, bool log_errors)
 
bool grpc_parse_unix (const grpc_core::URI &uri, grpc_resolved_address *resolved_addr)
 
bool grpc_parse_unix_abstract (const grpc_core::URI &uri, grpc_resolved_address *resolved_addr)
 
bool grpc_parse_uri (const grpc_core::URI &uri, grpc_resolved_address *resolved_addr)
 
uint16_t grpc_strhtons (const char *port)
 
grpc_error_handle grpc_string_to_sockaddr (grpc_resolved_address *out, const char *addr, int port)
 
grpc_error_handle grpc_core::UnixAbstractSockaddrPopulate (absl::string_view, grpc_resolved_address *)
 
grpc_error_handle grpc_core::UnixSockaddrPopulate (absl::string_view, grpc_resolved_address *)
 

Function Documentation

◆ grpc_parse_ipv4()

bool grpc_parse_ipv4 ( const grpc_core::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.

Definition at line 187 of file parse_address.cc.

◆ grpc_parse_ipv4_hostport()

bool grpc_parse_ipv4_hostport ( absl::string_view  hostport,
grpc_resolved_address addr,
bool  log_errors 
)

Parse bare IPv4 or IPv6 "IP:port" strings.

Definition at line 146 of file parse_address.cc.

◆ grpc_parse_ipv6()

bool grpc_parse_ipv6 ( const grpc_core::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.

Definition at line 282 of file parse_address.cc.

◆ grpc_parse_ipv6_hostport()

bool grpc_parse_ipv6_hostport ( absl::string_view  hostport,
grpc_resolved_address addr,
bool  log_errors 
)

Definition at line 198 of file parse_address.cc.

◆ grpc_parse_unix()

bool grpc_parse_unix ( const grpc_core::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.

Definition at line 121 of file parse_address.cc.

◆ grpc_parse_unix_abstract()

bool grpc_parse_unix_abstract ( const grpc_core::URI uri,
grpc_resolved_address resolved_addr 
)

Populate resolved_addr from uri, whose path is expected to contain a unix socket path in the abstract namespace. Returns true upon success.

Definition at line 126 of file parse_address.cc.

◆ grpc_parse_uri()

bool grpc_parse_uri ( const grpc_core::URI uri,
grpc_resolved_address resolved_addr 
)

Populate resolved_addr from uri. Returns true upon success.

Definition at line 293 of file parse_address.cc.

◆ grpc_strhtons()

uint16_t grpc_strhtons ( const char *  port)

Definition at line 311 of file parse_address.cc.

◆ grpc_string_to_sockaddr()

grpc_error_handle grpc_string_to_sockaddr ( grpc_resolved_address out,
const char *  addr,
int  port 
)

Definition at line 320 of file parse_address.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:25