#include <libgdome/gdome.h>
Go to the source code of this file.
Data Structures | |
| struct | _macs_sock_struct |
#include for gdome functionality 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 _macs_sock_struct | _macs_sock |
#include for gdome functionality | |
| typedef _macs_context_struct | _macs_ctx |
| The structure of the macs context object. | |
Functions | |
| int | _macs_connect_socks (_macs_ctx *ctx, int servers) |
| _macs_sock * | _macs_get_sock (const _macs_ctx *ctx, int server) |
| int | _macs_free_socks (_macs_ctx *ctx, int servers) |
| int | _macs_add_server (_macs_ctx *ctx, const char *addr, int stype) |
| int | _macs_do_ping (_macs_sock *s, int server) |
| int | _macs_write (_macs_sock *s, const void *morsel, size_t siz, const char *svc, const char *cmd, const char *meth,...) |
| int | _macs_read (_macs_sock *s, char **reply[], char **morsel) |
| Reads a reply. | |
| char * | _macs_util_itoa (long int i) |
| Converts a digit 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_svr2str (int server) |
| Converts a server spec into the appropriate string. | |
|
|
Value: if (R) { free(*R); free(R); R=NULL; } \
if (M) { free(M); M=NULL; }
|
|
|
Unlocks and closes a socket.
|
|
|
Unlocks a socket.
|
|
|
Linked list of sockets to auth servers |
|
|
The structure of the macs context object.
This structure is holds the state of the macs library. An (opaque) instance of it is returned by a successful call to macs_init() and is passed as the first argument to other API calls. |
|
||||||||||||
|
Find good, working servers and brings up connections to them.
|
|
||||||||||||
|
Finds a connected _macs_sock from the given list, or connects one.
|
|
||||||||||||
|
Releases memory associated with the sockets.
|
|
||||||||||||||||
|
Adds a server to the context.
|
|
||||||||||||
|
Pings a server to test for connectivity.
|
|
||||||||||||||||||||||||||||||||
|
Write to the _macs_sock
|
|
||||||||||||||||
|
Reads a reply.
|
|
|
Converts a digit to a string.
|
|
||||||||||||
|
Converts a reply's morsel into a string.
|
|
|
Converts a macs_profile_type into the appropriate string.
|
|
|
Converts a server spec into the appropriate string.
|
1.2.16