vtkNetworkAccessManager.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkNetworkAccessManager_h
13 #define vtkNetworkAccessManager_h
14 
15 #include "vtkObject.h"
16 #include "vtkRemotingCoreModule.h" //needed for exports
17 
19 
21 {
22 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
34  enum class ConnectionResult
35  {
36  CONNECTION_SUCCESS,
37  CONNECTION_TIMEOUT,
38  CONNECTION_ABORT,
39  CONNECTION_HANDSHAKE_ERROR,
40  CONNECTION_FAILURE
41  };
42 
44 
72  virtual vtkMultiProcessController* NewConnection(const char* url)
73  {
74  ConnectionResult result;
75  return this->NewConnection(url, result);
76  }
77  virtual vtkMultiProcessController* NewConnection(const char* url, ConnectionResult& result) = 0;
79 
84  virtual void AbortPendingConnection() = 0;
85 
89  virtual int ProcessEvents(unsigned long timeout_msecs) = 0;
90 
96  virtual bool GetNetworkEventsAvailable() = 0;
97 
101  virtual bool GetPendingConnectionsPresent() = 0;
102 
106  virtual void DisableFurtherConnections(int port, bool disable) = 0;
107 
111  virtual bool GetWrongConnectID() = 0;
112 
113 protected:
115  ~vtkNetworkAccessManager() override;
116 
117 private:
119  void operator=(const vtkNetworkAccessManager&) = delete;
120 };
121 
122 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
url
#define VTKREMOTINGCORE_EXPORT
virtual vtkMultiProcessController * NewConnection(const char *url)
Creates a new connection given the url.
port
vtkNetworkAccessManager is used to create new connections and monitor activity of those connections...
ConnectionResult
Possible result of connection when creating a new connection CONNECTION_SUCCESS: Connection was suces...