IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 23, 2006, 3:05:21 PM (20 years ago)
Author:
eugene
Message:

adding working threads to server/client mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/doc/pantasks.txt

    r7929 r7952  
     1
     2- todo:
     3
     4  - create the processing threads:
     5    - check tasks
     6    - check jobs
     7    - check controller 
     8    - load inputs
    19
    210- additional issues:
    3 
    4   - missing dependency for shell.h?
    5   - should not return an error message in client if command is not found
    611  - server input needs to place files for input on a stack which is
    712    actually loaded by the RunScheduler loop
     
    1015    be running multicommand, but it probably does not hurt.
    1116    (the client is not allowed to send ';' to the server)
    12   - the multicommand needs to be available in the 'for' and other loops
    13     this probably means unifying the client and non-client forms. 
    14     how does multiclient get the value of the server?  I tend to use
    15     globals for things like that, which is probably not the best
    16     practice.  is the client form of the tool generic? are there other
    17     circumstances which would use a client/server beyond pantasks?
    18     maybe pcontrol? 
    1917
    20     the two pieces of information which need to be carried to the
    21     multicommand and command functions in client/server mode are the
    22     server socket and the verbosity of the error messages.  these could
    23     be defined on startup with globals and an init function of some sort.
     18  - pantasks input: this passes an 'input' command to the server, which
     19    performs the input in a different thread.  is this the same thread
     20    as the scheduler loop?  another option within the scheduler loop?
    2421
    25 I need to do some serious work on the output messages in order
    26 to support the client/server interactions.  In client/server mode,
    27 all of the output messages to be sent back to the client need to be
    28 saved in a buffer and then pushed back to the client after the command
    29 is executed.  Currently, I can select only the output file pointer.
    30 this is not sufficient.  I need to supply a function which will write to
    31 an internal buffer until a 'dump' function is called, or something
    32 equivalent. 
    33 
    34 in client/server mode, the commands issues by the client (except as noted
    35 below) all return immediately.  The output produced by those commands
    36 is saved by the server until the command is finished, then the
    37 resulting buffered data is pushed back to the client.  There a few
    38 commands which behave a bit differently.  these commands are in the
    39 background thread of the scheduler.  the resulting output is sent to
    40 the logger device of the scheduler rather than back to any specific
    41 client.  should there be a way for the client(s) to examine the
    42 scheduler output?
    43 
    44 - pantasks input: this passes an 'input' command to the server, which
    45   performs the input in a different thread.  is this the same thread
    46   as the scheduler loop?  another option within the scheduler loop?
    47 
    48 - run
Note: See TracChangeset for help on using the changeset viewer.