All Classes Namespaces Functions Variables Typedefs Enumerations Friends
sockaddr.h
1 
5 #pragma once
6 
7 #include <memory>
8 #include <netdb.h>
9 
10 namespace ucxx {
11 
12 namespace utils {
13 
25 [[nodiscard]] std::unique_ptr<struct addrinfo, void (*)(struct addrinfo*)> get_addrinfo(
26  const char* ip_address, uint16_t port);
27 
39 void sockaddr_get_ip_port_str(const struct sockaddr_storage* sock_addr,
40  char* ip_str,
41  char* port_str,
42  size_t max_str_size);
43 
44 } // namespace utils
45 
46 } // namespace ucxx
Definition: address.h:15