~ubuntu-branches/ubuntu/hardy/steam/hardy

« back to all changes in this revision

Viewing changes to client/client_base.pike

  • Committer: Bazaar Package Importer
  • Author(s): Alain Schroeder
  • Date: 2006-11-21 16:03:12 UTC
  • mfrom: (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061121160312-nf96y6nihzsyd2uv
Tags: 2.2.31-3
Add patch to prevent inconsistent data after shutdown.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000-2004  Thomas Bopp, Thorsten Hampel, Ludger Merkens
 
1
/* Copyright (C) 2000-2005  Thomas Bopp, Thorsten Hampel, Ludger Merkens
2
2
 *
3
3
 *  This program is free software; you can redistribute it and/or modify
4
4
 *  it under the terms of the GNU General Public License as published by
14
14
 *  along with this program; if not, write to the Free Software
15
15
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
16
 * 
17
 
 * $Id: client_base.pike,v 1.3 2005/05/02 14:52:43 astra Exp $
 
17
 * $Id: client_base.pike,v 1.3 2006/10/03 13:02:07 astra Exp $
18
18
 */
19
19
 
20
 
constant cvs_version="$Id: client_base.pike,v 1.3 2005/05/02 14:52:43 astra Exp $";
 
20
constant cvs_version="$Id: client_base.pike,v 1.3 2006/10/03 13:02:07 astra Exp $";
21
21
 
22
22
inherit "kernel/socket";
23
23
inherit "net/coal/binary";
71
71
    return oID;
72
72
  }
73
73
 
74
 
  function find_function(string f) {
75
 
    return 0;
76
 
  }
77
 
 
78
74
  int get_object_class() {
79
75
    if ( cl == 0 ) {
80
76
      int wid = iWaitTID;
103
99
    oID = id;
104
100
  }
105
101
 
 
102
  int status() {
 
103
    return 1; // PSTAT_SAVE_OK
 
104
  }
 
105
 
106
106
  int no_wait(void|int(0..1) _nowait)
107
107
  {
108
108
    if(!zero_type(_nowait) && nowait == !_nowait)
246
246
          mixed err = catch {
247
247
            handle_command(res[1][0], res[1][1]);
248
248
          };
249
 
          if ( err ) {
250
 
            werror("Error handling command: %O\n", err);
251
 
          }
 
249
          if ( err != 0 )
 
250
            werror("Fatal error while calling command: %O\n", err);
252
251
        }
253
252
      }
254
253
  }
434
433
    return 0;
435
434
}
436
435
 
 
436
mixed get_variable(string key)
 
437
{
 
438
  return mVariables[key];
 
439
}
 
440
 
437
441
mixed logout()
438
442
{
439
443
    __connected = 0;
488
492
    if (recursive!=0)
489
493
        error_file->close();
490
494
}
491
 
 
492
 
 
493