From 1f28a586dfc64b7c021eb3e3894a72b4b84482af Mon Sep 17 00:00:00 2001 From: jacomi Date: Tue, 30 Mar 1999 12:59:36 +0000 Subject: *** empty log message *** --- doc/ivy-c.htm | 228 +++++----------------------------------------------------- 1 file changed, 16 insertions(+), 212 deletions(-) (limited to 'doc/ivy-c.htm') diff --git a/doc/ivy-c.htm b/doc/ivy-c.htm index 8256c39..067350a 100644 --- a/doc/ivy-c.htm +++ b/doc/ivy-c.htm @@ -1,5 +1,6 @@
+-IvyInit(AppName, ready, callback, data, die_callback, die_data) -
-void -IvyStart(bus) -
-void -IvyStop() -
-MsgRcvPtr -IvyBindMsg(callback, user_data, regexp, ...) -
-void -IvyUnbindMsg(id) -
-void -IvyBindDirectMsg(callback, user_data) -
-int -IvySendMsg(fmt_message, ...) -
-void -IvySendDirectMsg(app, id, msg) -
-void -IvySendDieMsg(app) -
-void -IvySendError(app, id, fmt, ...) -
-char* -IvyGetApplicationName(app) -
-char* -IvyGetApplicationHost(app) -
-char* -IvyGetApplication(name) -
-char* -IvyGetApplicationList() -
-char** -IvyGetApplicationMessages(\fapp) -
-char* -IvyDefaultApplicationCallback(app, user_data, Event) -char* -IvyClasses(argc, argv) -
-void -IvyChannelInit(void) -
-Channel -IvyChannelSetUp(fd, data, handle_delete, handle_read) -
-void -IvyMainLoop(hook) -
-void -IvyChannelClose(channel) -
-static void -IvyChannelDelete(channel) -
-static void -IvyChannelHandleRead(current) -
-static void -IvyChannelHandleExcpt(current) -
-static void -IvyXtChannelInit(void) -
-static void -IvyXtChannelSetUp(fd, data, handle_delete, handle_read) -
-void -IvyXtChannelClose(channel) -
-static void -IvyXtHandleChannelRead(closure, source, id) -
-static void -IvyXtHandleChannelDelete(closure, source, id) -
-void -IvyChannelAppContext(cntx) -
-
const_char *AppName
-(in) const_char *ready
-(in) IvyApplicationCallback callback
-(in) void *data
-(in) IvyDieCallback die_callback
-(in) void *die_data
-(in) const_char *bus
-(in) MsgCallback callback
-(in) void *user_data
-(in) const_char *regexp
-(in) MsgRcvPtr id
-(out) MsgRcvPtr id
-(in) const_char* fmt
-(in) HANDLE fd
-(in) void *data
-(in) ChannelHandleDelete handle_delete
-(in) ChannelHandleRead handle_read
-(in) Channel out
-(out) -These functions provide facilities for connecting applications on a -software bus and managing messages exchanges among them. +Ivy is a software bus, ie a system that allows any software component to freely exchange data. +The basic principle of a software bus is to ease the rapid implementation of new agents, and to manage a dynamic collection of agents on the bus: agents connect, send and receive messages, and disconnect without perturbing the overall functionment of the bus. Each time an application initializes a connection on the bus, a "ready" message is sent to all other applications already connected, and the list of the messages subscribed by this application is dispatched. The format for the messages is free. - -
- -#include "ivyloop.h" -#include "ivysocket.h" -#include "ivy.h" - - int main (int argc, char* argv[]){ -/* bus domain and port number to be used */ - const char* bus="127.255.255.255:2010"; -/* initialisation of the connection */ - IvyInit ("IVYPROBE", - bport, - "IVYPROBE READY", - ApplicationCallback, - NULL, - NULL, - NULL); -/* keyboard's inputs management */ - IvyChannelSetUp(0, NULL, NULL, HandleStdin); -/* starting the connection */ - IvyStart (bus); -/* Main loop */ - IvyMainLoop(0); -}; +Connexion ++Main
+Message +
+Message
-
For further details, please refer to the Ivy html page at http://www.cenatls.cena.dgac.fr/pii/produits/Ivy.html