Go to the source code of this file.
|
int | crm_remote_send (crm_remote_t *remote, xmlNode *msg) |
|
int | crm_remote_ready (crm_remote_t *remote, int total_timeout) |
|
gboolean | crm_remote_recv (crm_remote_t *remote, int total_timeout, int *disconnected) |
|
xmlNode * | crm_remote_parse_buffer (crm_remote_t *remote) |
|
int | crm_remote_tcp_connect (const char *host, int port) |
|
int | crm_remote_tcp_connect_async (const char *host, int port, int timeout, int *timer_id, void *userdata, void(*callback)(void *userdata, int sock)) |
|
int | crm_remote_accept (int ssock) |
|
void | crm_sockaddr2str (void *sa, char *s) |
| Convert an IP address (IPv4 or IPv6) to a string for logging. More...
|
|
int crm_remote_accept |
( |
int |
ssock | ) |
|
int crm_remote_ready |
( |
crm_remote_t * |
remote, |
|
|
int |
total_timeout |
|
) |
| |
gboolean crm_remote_recv |
( |
crm_remote_t * |
remote, |
|
|
int |
total_timeout, |
|
|
int * |
disconnected |
|
) |
| |
int crm_remote_send |
( |
crm_remote_t * |
remote, |
|
|
xmlNode * |
msg |
|
) |
| |
int crm_remote_tcp_connect |
( |
const char * |
host, |
|
|
int |
port |
|
) |
| |
int crm_remote_tcp_connect_async |
( |
const char * |
host, |
|
|
int |
port, |
|
|
int |
timeout, |
|
|
int * |
timer_id, |
|
|
void * |
userdata, |
|
|
void(*)(void *userdata, int sock) |
callback |
|
) |
| |
void crm_sockaddr2str |
( |
void * |
sa, |
|
|
char * |
s |
|
) |
| |
Convert an IP address (IPv4 or IPv6) to a string for logging.
- Parameters
-
[in] | sa | Socket address for IP |
[out] | s | Storage for at least INET6_ADDRSTRLEN bytes |
- Note
- sa The socket address can be a pointer to struct sockaddr_in (IPv4), struct sockaddr_in6 (IPv6) or struct sockaddr_storage (either), as long as its sa_family member is set correctly.
Definition at line 1106 of file remote.c.