![]() |
#include <citrusleaf/cf_byte_order.h>
#include <netinet/in.h>
#include <string.h>
#include <sys/socket.h>
Go to the source code of this file.
Functions | |
static void | as_address_copy_storage (struct sockaddr *src, struct sockaddr_storage *trg) |
void | as_address_name (struct sockaddr *addr, char *name, socklen_t size) |
static in_port_t | as_address_port (struct sockaddr *addr) |
void | as_address_short_name (struct sockaddr *addr, char *name, socklen_t size) |
static socklen_t | as_address_size (struct sockaddr *addr) |
|
inlinestaticprivate |
Copy socket address to storage.
Definition at line 82 of file as_address.h.
References as_address_size().
|
private |
Convert socket address (including port) to a string.
Formats:
|
inlinestaticprivate |
Return port of address.
Definition at line 59 of file as_address.h.
|
private |
Convert socket address to a string without brackets or a port.
Formats:
|
inlinestaticprivate |
Return size of socket address.
Definition at line 72 of file as_address.h.