~ubuntu-branches/debian/squeeze/gmsh/squeeze

« back to all changes in this revision

Viewing changes to Common/GmshSocket.h

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme
  • Date: 2009-07-13 15:49:21 UTC
  • mfrom: (7.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090713154921-zer07j8wixwa07ig
Tags: 2.3.1.dfsg-4
[Christophe Prud'homme]
* Bug fix: "gmsh with cgns write support", thanks to Oliver Borm
  (Closes: #529972).
* debian/rules: make sure that Gmsh is built with occ support on all
  platforms thanks to Denis Barbier (#536435).

Show diffs side-by-side

added added

removed removed

Lines of Context:
286
286
  virtual ~GmshServer(){}
287
287
  virtual int SystemCall(const char *str) = 0;
288
288
  virtual int NonBlockingWait(int socket, int num, double waitint) = 0;
289
 
  int StartClient(const char *command, const char *sockname=0, int maxdelay=4)
 
289
  int StartClient(const char *command, const char *sockname=0, int timeout=5)
290
290
  {
291
291
    bool justwait = (!command || !strlen(command));
292
292
    _sockname = sockname;
365
365
      }
366
366
    }
367
367
    else{
368
 
      // Wait at most maxdelay seconds for data, issue error if no
 
368
      // Wait at most timeout seconds for data, issue error if no
369
369
      // connection in that amount of time
370
 
      if(!Select(tmpsock, maxdelay, 0)){
 
370
      if(!Select(tmpsock, timeout, 0)){
371
371
        CloseSocket(tmpsock);
372
372
        return -4;  // Error: Socket listening timeout
373
373
      }