IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 18, 2009, 10:29:11 AM (17 years ago)
Author:
eugene
Message:

updated pcontrol to restart pclients that have been connected for too long

File:
1 edited

Legend:

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

    r21379 r25872  
    6060  PCONTROL_RESP_KILL_JOB,
    6161  PCONTROL_RESP_STOP_HOST,
     62  PCONTROL_RESP_DOWN_HOST,
    6263} HostResp;
    6364
     
    129130  int         pid;
    130131  HostStat    stack;
    131   Ptime       lasttry;
    132   Ptime       nexttry;
    133132  IDtype      HostID;
    134133  IOBuffer    comms_buffer;
    135134  char       *response;
    136135  HostResp    response_state;
     136  Ptime       last_start_try; // last (UNIX) time we attempted to connect to this host (0 on success)
     137  Ptime       next_start_try; // next (UNIX) time we should attempt to connect to this host (0 on success)
     138  Ptime       connect_time; // (UNIX) time we connected to this host
    137139  struct Job *job;
    138140} Host;
     
    210212
    211213int StartHost (Host *host);
     214int CheckResetHost (Host *host);
    212215int CheckIdleHost (Host *host, int Stage);
    213216int CheckDoneJob (Job *job, Host *host);
     
    253256/*** StopHosts.c ***/
    254257void   DownHost (Host *host);
     258int    DownHosts (void);
     259int    DownHostResponse (Host *host);
    255260void   OffHost (Host *host);
    256 int    DownHosts (void);
    257 int    StopHost (Host *host);
     261int    StopHost (Host *host, int mode);
    258262int    StopHostResponse (Host *host);
    259263int    HarvestHost (int pid);
Note: See TracChangeset for help on using the changeset viewer.