OpendTect  6.6
Classes | Namespaces | Macros
jobcommunic.h File Reference
Include dependency graph for jobcommunic.h:

Go to the source code of this file.

Classes

class  JobCommunic
 Multi-machine socket communicator Handles the communication between a client and the primary host, from the client's point of view. More...
 

Namespaces

 Network
 

Macros

#define mReturn(ret)
 
#define mTryMaxtries(fn)
 

Macro Definition Documentation

◆ mReturn

#define mReturn (   ret)
Value:
{ \
if ( ret ) { nrattempts_ = 0; return true; } \
if ( nrattempts_++ < maxtries_ ) return true; \
stillok_ = false; \
directMsg("Lost connection with primary host[1]. Exiting."); \
ApplicationData::exit( -1 ); return false; \
}

◆ mTryMaxtries

#define mTryMaxtries (   fn)
Value:
{ \
for ( int i=0; i<maxtries_; i++ ) \
{ \
bool ret = fn; \
if ( ret ) return true; \
sleepSeconds(1); \
} \
stillok_ = false; \
directMsg("Lost connection with primary host[2]. Exiting."); \
ApplicationData::exit( -1 ); return false; \
}

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021