IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2008, 11:05:49 AM (18 years ago)
Author:
eugene
Message:

better handling for client / server connect / disconnect / shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/init_client.c

    r16453 r16903  
    11# include "pantasks.h"
    22
    3 int invalid         PROTO((int, char **));
     3int invalid           PROTO((int, char **));
     4int server_shutdown   PROTO((int, char **));
     5int server_disconnect PROTO((int, char **));
     6int server_connect    PROTO((int, char **));
    47
    5 /* we list here commands which are not valid for the client,
    6    but represent valid pantasks commands.  these are caught
    7    by the client and sent to the 'invalid' function */
     8/* we also list here commands which are not valid for the client, but represent valid
     9   pantasks commands.  these are caught by the client and sent to the 'invalid'
     10   function */
    811
    912static Command cmds[] = { 
    10   {1, "task",       invalid,  "define a schedulable task"},
    11   {1, "task.exit",  invalid,  "define exit macros for a task"},
    12   {1, "task.exec",  invalid,  "define pre-exec macro for a task"},
     13  {1, "task",       invalid,     "define a schedulable task"},
     14  {1, "task.exit",  invalid,     "define exit macros for a task"},
     15  {1, "task.exec",  invalid,     "define pre-exec macro for a task"},
     16
     17  {1, "shutdown",   server_shutdown,   "send exit signal to server"},
     18  {1, "disconnect", server_disconnect, "close connection to server"},
     19  {1, "connect",    server_connect,    "open connection to server"},
     20
    1321};
    1422
Note: See TracChangeset for help on using the changeset viewer.