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

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