From bc141af57a9ea4b5da4a15eea73e5e4269fc7e65 Mon Sep 17 00:00:00 2001 From: sc Date: Tue, 26 Jan 1999 08:53:25 +0000 Subject: 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)) --- src/ivyprobe.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/ivyprobe.c') 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 + * Authors: François-Régis Colin * Stéphane Chatty * * $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 #include #include @@ -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"); } -- cgit v1.1