|
Data Structures |
struct | _macs_sock_struct |
struct | _macs_cfgs_struct |
struct | _macs_session_struct |
| The structure of the macs internal session object. More...
|
struct | _macs_context_struct |
| The structure of the macs context object. More...
|
Defines |
#define | _macs_free_reply(R, M) |
| Releases the memory associated with a reply.
|
#define | _macs_close_sock(S) if (S) S->isup=S->in_use=0; |
| Unlocks and closes a socket.
|
#define | _macs_free_sock(S) if (S) S->in_use=0; |
| Unlocks a socket.
|
Typedefs |
typedef enum _macs_conn_type_enum | _macs_conn_type |
typedef _macs_sock_struct | _macs_sock |
typedef _macs_cfgs_struct | _macs_cfgs |
typedef _macs_session_struct | _macs_sess |
| The structure of the macs internal session object.
|
typedef _macs_context_struct | _macs_ctx |
| The structure of the macs context object.
|
Enumerations |
enum | _macs_conn_type_enum { MACS_UNDEF = 0,
MACS_UNIX,
MACS_TCP
} |
Functions |
void | _macs_clean_sess (macs_session *sess) |
| Make existing sess as if it just came from macs_new_sess().
|
int | _macs_parse_cf (macs_session *sess) |
void | _macs_free_cfgs (_macs_cfgs **cfgs) |
int | _macs_connect_sock (macs_session *sess, int svc) |
| Establishes a connection to the server.
|
_macs_sock * | _macs_get_sock (macs_session *sess, int svc) |
int | _macs_free_socks (_macs_sock **ctx) |
int | _macs_add_server (_macs_ctx *ctx, const char *addr, const _macs_conn_type type) |
int | _macs_do_ping (_macs_sock *s, macs_session *sess, int server) |
int | _macs_write (_macs_sock *s, const void *morsel, size_t siz, const char *svc, const char *cmd, const macs_session *sess, const char *meth,...) |
int | _macs_read (_macs_sock *s, char **reply[], char **morsel) |
| Reads a reply.
|
char * | _macs_util_itoa (long int i) |
| Converts an integer number to a string.
|
char * | _macs_util_ftoa (double i) |
| Converts a floating-point number to a string.
|
char * | _macs_util_adm2str (char **R, char *M) |
| Converts a reply's morsel into a string.
|
char * | _macs_util_type2str (macs_profile_type type) |
| Converts a macs_profile_type into the appropriate string.
|
char * | _macs_util_svc2str (int svc) |
| Converts a server spec into the appropriate string.
|