dsrc isn't necessary for this repo
[client-tools.git] / src / external / 3rd / library / perforce / include / keepalive.h
blob822efff8debf9af421da281faba61e53469c7f3a
1 /*
2 * Copyright 1995, 1996 Perforce Software. All rights reserved.
4 * This file is part of Perforce - the FAST SCM System.
5 */
7 /*
8 * This class has one method IsAlive() which can be called in either the
9 * client or the server.
11 * client:
12 * KeepAlive is subclassed and an implementation of IsAlive() is
13 * written that checks to see if the server request should be
14 * terminated or not. Note, this feature can be programmed using
15 * the API but must be instantiated using SetBreak() after the call
16 * to client.Init().
18 * server:
19 * The server has a couple of places where long running queries can
20 * stop and check to see if the client is still waiting (i.e. has not
21 * been terminated).
24 class KeepAlive {
26 public:
27 virtual int IsAlive() = 0;