IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 10, 2008, 12:51:04 PM (18 years ago)
Author:
eugene
Message:

allow job stdout / stderr from pclient to arrive slowly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/include/pcontrol.h

    r19124 r20047  
    8383} Fifo;
    8484
     85typedef struct {
     86  IOBuffer     buffer;
     87  int          completed;
     88  int          size;
     89  int          requested;
     90} JobOutput;
     91
    8592/* data to define a job */
    8693typedef struct {
     
    9198  int          exit_status;
    9299  int          Reset;
    93   int          stdout_size;
    94   int          stderr_size;
    95100  JobMode      mode;
    96101  JobStat      state;
    97102  JobStat      stack;
    98   IOBuffer     stdout_buff;
    99   IOBuffer     stderr_buff;
     103  JobOutput    stdout;
     104  JobOutput    stderr;
    100105  Ptime        start;
    101106  Ptime        stop;
     
    199204int CheckIdleHost (Host *host);
    200205int CheckDoneJob (Job *job, Host *host);
    201 int GetJobOutput (char *command, Host *host, IOBuffer *buffer, int Nbytes);
     206int GetJobOutput (char *command, Host *host, JobOutput *output);
    202207int rconnect (char *command, char *hostname, char *shell, int *stdio);
    203208
     
    247252
    248253/*** JobOps.c ***/
     254int InitJobOutput (JobOutput *output);
     255int ResetJobOutput (JobOutput *output);
    249256void   InitJobStacks ();
    250257void   FreeJobStacks ();
Note: See TracChangeset for help on using the changeset viewer.