00001 /* SVN FILE INFO 00002 * $Revision: 545 $ : Last Committed Revision 00003 * $Date: 2010-08-04 13:20:13 -0700 (Wed, 04 Aug 2010) $ : Last Committed Date */ 00004 /*[ 00005 * Copyright (c) 2007 Integration Engineering Laboratory 00006 University of California, Davis 00007 * 00008 * Permission to use, copy, and distribute this software and its 00009 * documentation for any purpose with or without fee is hereby granted, 00010 * provided that the above copyright notice appear in all copies and 00011 * that both that copyright notice and this permission notice appear 00012 * in supporting documentation. 00013 * 00014 * Permission to modify the software is granted, but not the right to 00015 * distribute the complete modified source code. Modifications are to 00016 * be distributed as patches to the released version. Permission to 00017 * distribute binaries produced by compiling modified sources is granted, 00018 * provided you 00019 * 1. distribute the corresponding source modifications from the 00020 * released version in the form of a patch file along with the binaries, 00021 * 2. add special version identification to distinguish your version 00022 * in addition to the base release version number, 00023 * 3. provide your name and address as the primary contact for the 00024 * support of your modified version, and 00025 * 4. retain our contact information in regard to use of the base 00026 * software. 00027 * Permission to distribute the released version of the source code along 00028 * with corresponding source modifications in the form of a patch file is 00029 * granted with same provisions 2 through 4 for binary distributions. 00030 * 00031 * This software is provided "as is" without express or implied warranty 00032 * to the extent permitted by applicable law. 00033 ]*/ 00034 00035 /* Format is: 00036 COMMAND("name", "cmd", "desc") 00037 */ 00038 COMMAND(QUIT, "quit", 00039 "This command ends the MobileC application.") 00040 COMMAND(HELP, "help", 00041 "This command displays help for any command. Usage is:\n \ 00042 \"help <command>\"") 00043 COMMAND(SEND, "send", 00044 "This command sends an agent XML file to a host. Usage is: \n \ 00045 \"send <filename>\"\n \ 00046 e.g. \"send test1.xml\"") 00047 COMMAND(PRINT_CONNECTLIST, 00048 "print_connectlist", 00049 "This command prints the list entries in the connectList.") 00050 COMMAND(PRINTLIST_MESSAGE, 00051 "printlist_message", 00052 "This command prints all the list entries on the linked list:\n \ 00053 message_queue") 00054 COMMAND(PRINTLIST_AGENTS, 00055 "printlist_agents", 00056 "This command prints all the agents on the system which are still\n\ 00057 on the agent list.\n") 00058 COMMAND(FLUSH_AGENTS, 00059 "flush_agents", 00060 "This command flushes all of the agents on the system which are still\n\ 00061 on the agent list.\n") 00062 COMMAND(COMPOSE_SEND, "compose_send", 00063 "This command composes an agent from Ch source code and sends \n \ 00064 it to a remote host. Usage is: \n \ 00065 \"compose_send <filename> <target host> <target port>\"\n \ 00066 e.g. \"compose_send agent_code.c iel.ucdavis.edu 5050\"")