ParaView
vtkNetworkAccessManager.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkNetworkAccessManager.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkNetworkAccessManager_h
25 #define vtkNetworkAccessManager_h
26 
27 #include "vtkObject.h"
28 #include "vtkPVClientServerCoreCoreModule.h" //needed for exports
29 
30 class vtkMultiProcessController;
31 
32 class VTKPVCLIENTSERVERCORECORE_EXPORT vtkNetworkAccessManager : public vtkObject
33 {
34 public:
35  vtkTypeMacro(vtkNetworkAccessManager, vtkObject);
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
64  virtual vtkMultiProcessController* NewConnection(const char* url) = 0;
65 
70  virtual void AbortPendingConnection() = 0;
71 
75  virtual int ProcessEvents(unsigned long timeout_msecs) = 0;
76 
82  virtual bool GetNetworkEventsAvailable() = 0;
83 
87  virtual bool GetPendingConnectionsPresent() = 0;
88 
89 protected:
92 
93 private:
94  vtkNetworkAccessManager(const vtkNetworkAccessManager&) VTK_DELETE_FUNCTION;
95  void operator=(const vtkNetworkAccessManager&) VTK_DELETE_FUNCTION;
96 };
97 
98 #endif
vtkNetworkAccessManager is used to create new connections and monitor activity of those connections...