OpendTect-6_4  6.4
remcommhandler.h
Go to the documentation of this file.
1 #ifndef remcommhandler_h
2 #define remcommhandler_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Ranojay Sen
9  Date: May 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "mmprocmod.h"
16 #include "callback.h"
17 #include "od_iosfwd.h"
18 
19 namespace Network { class Server; }
20 
26 {
27 public:
28  RemCommHandler(int port);
29  ~RemCommHandler();
30 
31  void listen() const;
32 
33 protected:
34 
35  void dataReceivedCB(CallBacker*);
36  bool mkCommand(const IOPar&,BufferString&);
37  void uiErrorMsg(const char*);
38  od_ostream& createLogFile();
39  void writeLog(const char* msg);
41 
42  const int port_;
43  Network::Server& server_;
44 
45 };
46 
47 
48 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
Definition: jobcommunic.h:24
od_ostream & logstrm_
Definition: remcommhandler.h:40
Handles commands to be executed remotely on a different machine.
Definition: remcommhandler.h:25
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Multi Machine Processing.
Definition: mmassetmgr.h:23
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Network::Server & server_
Definition: remcommhandler.h:43
const int port_
Definition: remcommhandler.h:42

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