#include "gale/core.h"
#include "gale/misc.h"
#include "oop.h"
Go to the source code of this file.
Compounds | |
| struct | gale_message |
Message Formatting | |
| typedef void* | gale_call_location (struct gale_text name, struct gale_location *loc,void *user) |
| Function type to report a complete location lookup. More... | |
| typedef void* | gale_call_packet (struct gale_packet *msg,void *user) |
| Function type to report a packed message. More... | |
| typedef void* | gale_call_message (struct gale_message *msg,void *user) |
| Function type to report an unpacked message. More... | |
| void | gale_find_location ( oop_source *,struct gale_text, gale_call_location *,void *user) |
| Look up a Gale location address. More... | |
| void | gale_find_exact_location ( oop_source *,struct gale_text, gale_call_location *,void *user) |
| Look up a Gale location address without alias expansion. More... | |
| void | gale_find_default_location ( oop_source *,gale_call_location *,void *user) |
| Look up the default user location. More... | |
| struct gale_text | gale_location_name (struct gale_location *loc) |
| Find a location's name. More... | |
| struct gale_key* | gale_location_key (struct gale_location *loc) |
| Find the key of a location. More... | |
| const struct gale_map* | gale_location_members (struct gale_location *loc) |
| Get the membership list of a location. More... | |
| int | gale_location_receive_ok (struct gale_location *loc) |
| Determine if we can receive messages sent to a location. More... | |
| int | gale_location_send_ok (struct gale_location *loc) |
| Determine if we can send messages to a location. More... | |
| void | gale_pack_message (oop_source *oop, struct gale_message *msg, gale_call_packet *call,void *user) |
| Pack a Gale message into a raw "packet". More... | |
| void | gale_unpack_message (oop_source *oop, struct gale_packet *pack, gale_call_message *func,void *user) |
| Unpack a Gale message from a raw "packet". More... | |
| struct gale_text | gale_pack_subscriptions ( struct gale_location **list, int *positive) |
| Pack a list of locations into a subscription expression. More... | |
Connection Management | |
| typedef void* | gale_call_disconnect (struct gale_server *serv,void *user) |
| Function type for user-defined notification handler for disconnection. More... | |
| typedef void* | gale_call_connect (struct gale_server *serv, struct gale_text host,struct sockaddr_in addr,void *) |
| Function type for user-defined notification handler for connection. More... | |
| struct gale_server* | gale_make_server ( oop_source *oop,struct gale_link *link, struct gale_text server,int avoid_port) |
| Connect to a Gale server. More... | |
| void | gale_close (struct gale_server *serv) |
| Disconnect from a Gale server. More... | |
| void | gale_on_connect (struct gale_server *serv,gale_call_connect *func,void *user) |
| Set a handler to be called when a connection is established. More... | |
| void | gale_on_disconnect (struct gale_server *,gale_call_disconnect *func,void *user) |
| Set a handler to be called when a connection is broken. More... | |
Error Processing | |
| struct gale_error_queue* | gale_make_queue (oop_source *) |
| Create an error queue object. More... | |
| void | gale_on_queue (struct gale_error_queue *,gale_call_message *,void *) |
| Set a handler to be called when an error message object is generated. More... | |
| gale_call_error | gale_queue_error |
| Add an error report to an error queue object. More... | |
Functions | |
| void | gale_add_id (struct gale_group *group,struct gale_text terminal) |
| Add standard identifying fragments to a message. More... | |
|
|
Function type for user-defined notification handler for connection.
|
|
|
Function type for user-defined notification handler for disconnection.
|
|
|
Function type to report a complete location lookup.
|
|
|
Function type to report an unpacked message.
|
|
|
Function type to report a packed message.
|
|
|
Add standard identifying fragments to a message.
|
|
|
Disconnect from a Gale server. Gracefully closes a Gale server connection.
|
|
|
Look up the default user location. Start looking up the local user's default "personal" location. When the lookup is complete (whether it succeeded or failed), the supplied callback is invoked.
|
|
|
Look up a Gale location address without alias expansion. This function is like gale_find_location(), but accepts only canonical location names, and skips all alias expansion steps.
|
|
|
Look up a Gale location address. Start looking up a Gale location address in the background and return immediately. When the lookup is complete (whether it succeeded or failed), the supplied callback is invoked.
|
|
|
Find the key of a location. This function will return the key responsible for controlling a location's behavior. (For example, the key for "pub.food.bitter@ofb.net" might be "pub.*@ofb.net".)
|
|
|
Get the membership list of a location.
|
|
|
Find a location's name. This is approximately the opposite of gale_find_exact_location().
|
|
|
Determine if we can receive messages sent to a location. Effectively, this is true if we hold the private key for a location (or the location is public).
|
|
|
Determine if we can send messages to a location.
|
|
|
Create an error queue object.
|
|
|
Connect to a Gale server. Keeps a link connected. Uses link_on_error() to automatically reconnect if the connection is closed. If you use gale_make_server(), you should not use link_on_error(). (Instead, use gale_on_disconnect().)
|
|
|
Set a handler to be called when a connection is established. When gale_make_server() is called, the connection process is initiated in the background. When it completes, the function (if any) registered with gale_on_connect() will be called. Henceforth, the function is also called for every successful reconnection (after disconnection).
|
|
|
Set a handler to be called when a connection is broken. A connection established by gale_make_server() can be broken by the remote end, by a faulty network, or by gale_close(). In all but the last case, the connection manager will immediately begin a reconnection attempt. In any case, the function (if any) registered with gale_on_disconnect() will be called to let you know.
|
|
|
Set a handler to be called when an error message object is generated.
|
|
|
Pack a Gale message into a raw "packet". Packing may require location lookups, so this function starts the process in the background, using liboop to invoke a callback when the process is complete.
|
|
|
Pack a list of locations into a subscription expression.
|
|
|
Unpack a Gale message from a raw "packet". Unpacking may require location lookups, so this function starts the process in the background, using liboop to invoke a callback when the process is complete.
|
|
|
Add an error report to an error queue object.
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000