diff options
author | sc | 1999-01-26 08:53:25 +0000 |
---|---|---|
committer | sc | 1999-01-26 08:53:25 +0000 |
commit | bc141af57a9ea4b5da4a15eea73e5e4269fc7e65 (patch) | |
tree | 53654c22e322e346402b09c8ee804220b8acb1bd /src/ivyprobe.c | |
parent | 4853dbf7e1e3d69064f6af735acc802b5971b5f5 (diff) | |
download | ivy-c-bc141af57a9ea4b5da4a15eea73e5e4269fc7e65.zip ivy-c-bc141af57a9ea4b5da4a15eea73e5e4269fc7e65.tar.gz ivy-c-bc141af57a9ea4b5da4a15eea73e5e4269fc7e65.tar.bz2 ivy-c-bc141af57a9ea4b5da4a15eea73e5e4269fc7e65.tar.xz |
A bit of clean up in headers
Changes in IvyStart and IvyInit:
- expanded parsing of IvyStart argument to bus addresses like 123.123,123.122:2019
- socket for receiving broadcast handshakes is now in IvyStart (we thus lose the
ability to have "passive" agents (agents that listen but don't say hello))
Diffstat (limited to 'src/ivyprobe.c')
-rw-r--r-- | src/ivyprobe.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ivyprobe.c b/src/ivyprobe.c index 8021ece..360eae7 100644 --- a/src/ivyprobe.c +++ b/src/ivyprobe.c @@ -1,20 +1,20 @@ /* * Ivy probe * - * Copyright (C) 1997-1999 - * Centre d'Études de la Navigation Aérienne + * Copyright (C) 1997-1999 + * Centre d'Études de la Navigation Aérienne * * Main and only file * - * Authors: François-Régis Colin <colin@cenatoulouse.dgac.fr> + * Authors: François-Régis Colin <colin@cenatoulouse.dgac.fr> * Stéphane Chatty <chatty@cenatoulouse.dgac.fr> * * $Id$ * - * Please refer to file version.h for the - * copyright notice regarding this software - * + * Please refer to file version.h for the + * copyright notice regarding this software */ + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -84,20 +84,20 @@ void HandleStdin( Channel channel, HANDLE fd, void *data) } } if ( strcmp(cmd, "dieall-yes-i-am-sure") == 0 ) - { + { arg = IvyGetApplicationList(); arg = strtok( arg, " \n" ); while ( arg ) { app = IvyGetApplication( arg ); - if ( app ) - IvySendDieMsg( app ); - else printf( "No Application %s!!!\n",arg); - arg = strtok( NULL, " "); + if ( app ) + IvySendDieMsg( app ); + else printf( "No Application %s!!!\n",arg); + arg = strtok( NULL, " "); } - } - + } + if ( strcmp(cmd, "bind" ) == 0 ) { arg = strtok( NULL, "'" ); @@ -156,7 +156,7 @@ void HandleStdin( Channel channel, HANDLE fd, void *data) } else { - cmd = strtok (buf, "\n"); + cmd = strtok (buf, "\n"); err = IvySendMsg( cmd ); printf("-> Sent to %d peer%s\n", err, err == 1 ? "" : "s"); } |