#include <citrusleaf/cf_byte_order.h>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
Go to the source code of this file.
Macros | |
#define | AS_IP_ADDRESS_SIZE 64 |
Functions | |
static void | as_address_copy_storage (struct sockaddr *src, struct sockaddr_storage *trg) |
static bool | as_address_is_local (struct sockaddr *addr) |
void | as_address_name (struct sockaddr *addr, char *name, socklen_t size) |
static uint16_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) |
#define AS_IP_ADDRESS_SIZE 64 |
Definition at line 32 of file as_address.h.
|
inlinestaticprivate |
Copy socket address to storage.
Definition at line 92 of file as_address.h.
References as_address_size().
|
inlinestaticprivate |
Return if socket address is localhost.
Definition at line 103 of file as_address.h.
|
private |
Convert socket address (including port) to a string.
Formats:
|
inlinestaticprivate |
Return port of address.
Definition at line 69 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 82 of file as_address.h.