|
VTK
|
Process communication using Sockets. More...
#include <vtkSocketController.h>


Public Types | |
| enum | Consts { ENDIAN_TAG = 1010580540, IDTYPESIZE_TAG = 1027423549, VERSION_TAG = 1044266558, HASH_TAG = 0x3f3f3f3f } |
| typedef vtkMultiProcessController | Superclass |
Public Types inherited from vtkMultiProcessController | |
| enum | Errors { RMI_NO_ERROR, RMI_TAG_ERROR, RMI_ARG_ERROR } |
| enum | Consts { ANY_SOURCE = -1, INVALID_SOURCE = -2 } |
| enum | Tags { RMI_TAG = 1, RMI_ARG_TAG = 2, BREAK_RMI_TAG = 3, XML_WRITER_DATA_INFO = 4 } |
| typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
| typedef vtkObjectBase | Superclass |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| void | SingleMethodExecute () |
| void | MultipleMethodExecute () |
| void | CreateOutputWindow () |
| virtual int | WaitForConnection (int port) |
| virtual void | CloseConnection () |
| virtual int | ConnectTo (const char *hostName, int port) |
| int | GetSwapBytesInReceivedData () |
| void | SetCommunicator (vtkSocketCommunicator *comm) |
| vtkMultiProcessController * | CreateCompliantController () |
| virtual void | Initialize (int *argc, char ***argv, int) |
| virtual void | Initialize (int *argc, char ***argv) |
| virtual void | Initialize () |
| void | Finalize () |
| void | Finalize (int) |
Public Member Functions inherited from vtkMultiProcessController | |
| virtual void | Initialize (int *vtkNotUsed(argc), char ***vtkNotUsed(argv))=0 |
| void | SetSingleMethod (vtkProcessFunctionType, void *data) |
| int | GetLocalProcessId () |
| virtual unsigned long | AddRMI (vtkRMIFunctionType, void *localArg, int tag) |
| virtual int | RemoveFirstRMI (int tag) |
| virtual int | RemoveRMI (unsigned long id) |
| virtual unsigned long | AddRMICallback (vtkRMIFunctionType, void *localArg, int tag) |
| virtual void | RemoveAllRMICallbacks (int tag) |
| virtual bool | RemoveRMICallback (unsigned long id) |
| void | TriggerRMI (int remoteProcessId, void *arg, int argLength, int tag) |
| void | TriggerBreakRMIs () |
| void | Barrier () |
| vtkIdType | GetCount () |
| virtual void | Initialize (int *vtkNotUsed(argc), char ***vtkNotUsed(argv), int initializedExternally)=0 |
| void | SetNumberOfProcesses (int num) |
| int | GetNumberOfProcesses () |
| void | SetSingleProcessObject (vtkProcess *p) |
| void | SetMultipleMethod (int index, vtkProcessFunctionType, void *data) |
| virtual vtkMultiProcessController * | CreateSubController (vtkProcessGroup *group) |
| virtual vtkMultiProcessController * | PartitionController (int localColor, int localKey) |
| virtual void | RemoveRMI (vtkRMIFunctionType f, void *arg, int tag) |
| void | TriggerRMI (int remoteProcessId, const char *arg, int tag) |
| void | TriggerRMI (int remoteProcessId, int tag) |
| void | TriggerRMIOnAllChildren (void *arg, int argLength, int tag) |
| void | TriggerRMIOnAllChildren (const char *arg, int tag) |
| void | TriggerRMIOnAllChildren (int tag) |
| int | ProcessRMIs (int reportErrors, int dont_loop=0) |
| int | ProcessRMIs () |
| virtual void | SetBreakFlag (int) |
| virtual int | GetBreakFlag () |
| virtual vtkCommunicator * | GetCommunicator () |
| int | Send (const int *data, vtkIdType length, int remoteProcessId, int tag) |
| int | Send (const unsigned int *data, vtkIdType length, int remoteProcessId, int tag) |
| int | Send (const unsigned long *data, vtkIdType length, int remoteProcessId, int tag) |
| int | Send (const char *data, vtkIdType length, int remoteProcessId, int tag) |
| int | Send (const unsigned char *data, vtkIdType length, int remoteProcessId, int tag) |
| int | Send (const float *data, vtkIdType length, int remoteProcessId, int tag) |
| int | Send (const double *data, vtkIdType length, int remoteProcessId, int tag) |
| int | Send (vtkDataObject *data, int remoteId, int tag) |
| int | Send (vtkDataArray *data, int remoteId, int tag) |
| int | Send (const vtkMultiProcessStream &stream, int remoteId, int tag) |
| int | Receive (int *data, vtkIdType maxlength, int remoteProcessId, int tag) |
| int | Receive (unsigned int *data, vtkIdType maxlength, int remoteProcessId, int tag) |
| int | Receive (unsigned long *data, vtkIdType maxlength, int remoteProcessId, int tag) |
| int | Receive (char *data, vtkIdType maxlength, int remoteProcessId, int tag) |
| int | Receive (unsigned char *data, vtkIdType maxlength, int remoteProcessId, int tag) |
| int | Receive (float *data, vtkIdType maxlength, int remoteProcessId, int tag) |
| int | Receive (double *data, vtkIdType maxlength, int remoteProcessId, int tag) |
| int | Receive (vtkDataObject *data, int remoteId, int tag) |
| int | Receive (vtkDataArray *data, int remoteId, int tag) |
| int | Receive (vtkMultiProcessStream &stream, int remoteId, int tag) |
| vtkDataObject * | ReceiveDataObject (int remoteId, int tag) |
| int | Broadcast (int *data, vtkIdType length, int srcProcessId) |
| int | Broadcast (unsigned int *data, vtkIdType length, int srcProcessId) |
| int | Broadcast (unsigned long *data, vtkIdType length, int srcProcessId) |
| int | Broadcast (unsigned char *data, vtkIdType length, int srcProcessId) |
| int | Broadcast (char *data, vtkIdType length, int srcProcessId) |
| int | Broadcast (float *data, vtkIdType length, int srcProcessId) |
| int | Broadcast (double *data, vtkIdType length, int srcProcessId) |
| int | Broadcast (vtkDataObject *data, int srcProcessId) |
| int | Broadcast (vtkDataArray *data, int srcProcessId) |
| int | Broadcast (vtkMultiProcessStream &stream, int srcProcessId) |
| int | Gather (const int *sendBuffer, int *recvBuffer, vtkIdType length, int destProcessId) |
| int | Gather (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int destProcessId) |
| int | Gather (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int destProcessId) |
| int | Gather (const char *sendBuffer, char *recvBuffer, vtkIdType length, int destProcessId) |
| int | Gather (const float *sendBuffer, float *recvBuffer, vtkIdType length, int destProcessId) |
| int | Gather (const double *sendBuffer, double *recvBuffer, vtkIdType length, int destProcessId) |
| int | Gather (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int destProcessId) |
| int | GatherV (const int *sendBuffer, int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId) |
| int | GatherV (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId) |
| int | GatherV (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId) |
| int | GatherV (const char *sendBuffer, char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId) |
| int | GatherV (const float *sendBuffer, float *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId) |
| int | GatherV (const double *sendBuffer, double *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId) |
| int | GatherV (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkIdType *recvLengths, vtkIdType *offsets, int destProcessId) |
| int | GatherV (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int destProcessId) |
| int | Scatter (const int *sendBuffer, int *recvBuffer, vtkIdType length, int srcProcessId) |
| int | Scatter (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int srcProcessId) |
| int | Scatter (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int srcProcessId) |
| int | Scatter (const char *sendBuffer, char *recvBuffer, vtkIdType length, int srcProcessId) |
| int | Scatter (const float *sendBuffer, float *recvBuffer, vtkIdType length, int srcProcessId) |
| int | Scatter (const double *sendBuffer, double *recvBuffer, vtkIdType length, int srcProcessId) |
| int | Scatter (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int srcProcessId) |
| int | ScatterV (const int *sendBuffer, int *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) |
| int | ScatterV (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) |
| int | ScatterV (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) |
| int | ScatterV (const char *sendBuffer, char *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) |
| int | ScatterV (const float *sendBuffer, float *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) |
| int | ScatterV (const double *sendBuffer, double *recvBuffer, vtkIdType *sendLengths, vtkIdType *offsets, vtkIdType recvLength, int srcProcessId) |
| int | AllGather (const int *sendBuffer, int *recvBuffer, vtkIdType length) |
| int | AllGather (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length) |
| int | AllGather (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length) |
| int | AllGather (const char *sendBuffer, char *recvBuffer, vtkIdType length) |
| int | AllGather (const float *sendBuffer, float *recvBuffer, vtkIdType length) |
| int | AllGather (const double *sendBuffer, double *recvBuffer, vtkIdType length) |
| int | AllGather (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer) |
| int | AllGatherV (const int *sendBuffer, int *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets) |
| int | AllGatherV (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets) |
| int | AllGatherV (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets) |
| int | AllGatherV (const char *sendBuffer, char *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets) |
| int | AllGatherV (const float *sendBuffer, float *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets) |
| int | AllGatherV (const double *sendBuffer, double *recvBuffer, vtkIdType sendLength, vtkIdType *recvLengths, vtkIdType *offsets) |
| int | AllGatherV (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkIdType *recvLengths, vtkIdType *offsets) |
| int | AllGatherV (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer) |
| int | Reduce (const int *sendBuffer, int *recvBuffer, vtkIdType length, int operation, int destProcessId) |
| int | Reduce (const unsigned int *sendBuffer, unsigned int *recvBuffer, vtkIdType length, int operation, int destProcessId) |
| int | Reduce (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int operation, int destProcessId) |
| int | Reduce (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int operation, int destProcessId) |
| int | Reduce (const char *sendBuffer, char *recvBuffer, vtkIdType length, int operation, int destProcessId) |
| int | Reduce (const float *sendBuffer, float *recvBuffer, vtkIdType length, int operation, int destProcessId) |
| int | Reduce (const double *sendBuffer, double *recvBuffer, vtkIdType length, int operation, int destProcessId) |
| int | Reduce (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation, int destProcessId) |
| int | Reduce (const int *sendBuffer, int *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId) |
| int | Reduce (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId) |
| int | Reduce (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId) |
| int | Reduce (const char *sendBuffer, char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId) |
| int | Reduce (const float *sendBuffer, float *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId) |
| int | Reduce (const double *sendBuffer, double *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation, int destProcessId) |
| int | Reduce (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkCommunicator::Operation *operation, int destProcessId) |
| int | AllReduce (const int *sendBuffer, int *recvBuffer, vtkIdType length, int operation) |
| int | AllReduce (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, int operation) |
| int | AllReduce (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, int operation) |
| int | AllReduce (const char *sendBuffer, char *recvBuffer, vtkIdType length, int operation) |
| int | AllReduce (const float *sendBuffer, float *recvBuffer, vtkIdType length, int operation) |
| int | AllReduce (const double *sendBuffer, double *recvBuffer, vtkIdType length, int operation) |
| int | AllReduce (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, int operation) |
| int | AllReduce (const int *sendBuffer, int *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation) |
| int | AllReduce (const unsigned long *sendBuffer, unsigned long *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation) |
| int | AllReduce (const unsigned char *sendBuffer, unsigned char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation) |
| int | AllReduce (const char *sendBuffer, char *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation) |
| int | AllReduce (const float *sendBuffer, float *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation) |
| int | AllReduce (const double *sendBuffer, double *recvBuffer, vtkIdType length, vtkCommunicator::Operation *operation) |
| int | AllReduce (vtkDataArray *sendBuffer, vtkDataArray *recvBuffer, vtkCommunicator::Operation *operation) |
Public Member Functions inherited from vtkObject | |
| virtual void | DebugOn () |
| virtual void | DebugOff () |
| unsigned char | GetDebug () |
| void | SetDebug (unsigned char debugFlag) |
| virtual void | Modified () |
| virtual unsigned long | GetMTime () |
| unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| vtkCommand * | GetCommand (unsigned long tag) |
| void | RemoveObserver (vtkCommand *) |
| void | RemoveObservers (unsigned long event, vtkCommand *) |
| void | RemoveObservers (const char *event, vtkCommand *) |
| int | HasObserver (unsigned long event, vtkCommand *) |
| int | HasObserver (const char *event, vtkCommand *) |
| void | RemoveObserver (unsigned long tag) |
| void | RemoveObservers (unsigned long event) |
| void | RemoveObservers (const char *event) |
| void | RemoveAllObservers () |
| int | HasObserver (unsigned long event) |
| int | HasObserver (const char *event) |
| template<class U , class T > | |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| template<class U , class T > | |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| template<class U , class T > | |
| unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| int | InvokeEvent (unsigned long event, void *callData) |
| int | InvokeEvent (const char *event, void *callData) |
| int | InvokeEvent (unsigned long event) |
| int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
| const char * | GetClassName () const |
| virtual void | Delete () |
| virtual void | FastDelete () |
| void | Print (ostream &os) |
| virtual void | Register (vtkObjectBase *o) |
| virtual void | UnRegister (vtkObjectBase *o) |
| void | SetReferenceCount (int) |
| void | PrintRevisions (ostream &os) |
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| int | GetReferenceCount () |
Static Public Member Functions | |
| static vtkSocketController * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkSocketController * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMultiProcessController | |
| static vtkMultiProcessController * | GetGlobalController () |
| static void | SetGlobalController (vtkMultiProcessController *controller) |
| static int | GetBreakRMITag () |
| static int | GetRMITag () |
| static int | GetRMIArgTag () |
Static Public Member Functions inherited from vtkObject | |
| static void | BreakOnError () |
| static void | SetGlobalWarningDisplay (int val) |
| static void | GlobalWarningDisplayOn () |
| static void | GlobalWarningDisplayOff () |
| static int | GetGlobalWarningDisplay () |
Protected Member Functions | |
| vtkSocketController () | |
| ~vtkSocketController () | |
Protected Member Functions inherited from vtkMultiProcessController | |
| vtkMultiProcessController () | |
| ~vtkMultiProcessController () | |
| void | GetMultipleMethod (int index, vtkProcessFunctionType &func, void *&data) |
| void | ProcessRMI (int remoteProcessId, void *arg, int argLength, int rmiTag) |
| virtual vtkMultiProcessController * | GetLocalController () |
| virtual void | TriggerRMIInternal (int remoteProcessId, void *arg, int argLength, int rmiTag, bool propagate) |
Protected Member Functions inherited from vtkObject | |
| vtkObject () | |
| virtual | ~vtkObject () |
| virtual void | RegisterInternal (vtkObjectBase *, int check) |
| virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
| void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
| void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
| vtkObjectBase () | |
| virtual | ~vtkObjectBase () |
| virtual void | CollectRevisions (ostream &os) |
| virtual void | ReportReferences (vtkGarbageCollector *) |
| vtkObjectBase (const vtkObjectBase &) | |
| void | operator= (const vtkObjectBase &) |
Static Protected Attributes | |
| static int | Initialized |
Additional Inherited Members | |
Protected Attributes inherited from vtkMultiProcessController | |
| vtkProcessFunctionType | SingleMethod |
| void * | SingleData |
| int | BreakFlag |
| int | ForceDeepCopy |
| vtkOutputWindow * | OutputWindow |
| vtkCommunicator * | Communicator |
| vtkCommunicator * | RMICommunicator |
Friends inherited from vtkObject | |
Process communication using Sockets.
This is a concrete implementation of vtkMultiProcessController. It supports one-to-one communication using sockets. Note that process 0 will always correspond to self and process 1 to the remote process. This class is best used with ports.
Definition at line 50 of file vtkSocketController.h.
Definition at line 54 of file vtkSocketController.h.
Definition at line 107 of file vtkSocketController.h.
|
protected |
|
protected |
|
static |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
|
virtual |
Reimplemented from vtkMultiProcessController.
|
static |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkMultiProcessController.
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkMultiProcessController.
|
static |
Reimplemented from vtkMultiProcessController.
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkMultiProcessController.
This method is for initialiazing sockets. One of these is REQUIRED for Windows.
Definition at line 60 of file vtkSocketController.h.
|
virtual |
This method is for initialiazing sockets. One of these is REQUIRED for Windows.
|
inlinevirtual |
This method is for initialiazing sockets. One of these is REQUIRED for Windows.
Definition at line 63 of file vtkSocketController.h.
|
inlinevirtual |
Does not apply to sockets. Does nothing.
Implements vtkMultiProcessController.
Definition at line 69 of file vtkSocketController.h.
|
inlinevirtual |
Does not apply to sockets. Does nothing.
Implements vtkMultiProcessController.
Definition at line 70 of file vtkSocketController.h.
|
inlinevirtual |
Does not apply to sockets. Does nothing.
Implements vtkMultiProcessController.
Definition at line 74 of file vtkSocketController.h.
|
inlinevirtual |
Does not apply to sockets. Does nothing.
Implements vtkMultiProcessController.
Definition at line 77 of file vtkSocketController.h.
|
inlinevirtual |
Does not apply to sockets. Does nothing.
Implements vtkMultiProcessController.
Definition at line 80 of file vtkSocketController.h.
Wait for connection on a given port, forwarded to the communicator
|
virtual |
Close a connection, forwarded to the communicator
Open a connection to a give machine, forwarded to the communicator
| int vtkSocketController::GetSwapBytesInReceivedData | ( | ) |
| void vtkSocketController::SetCommunicator | ( | vtkSocketCommunicator * | comm | ) |
Set the communicator used in normal and rmi communications.
| vtkMultiProcessController* vtkSocketController::CreateCompliantController | ( | ) |
FOOLISH MORTALS! Thou hast forsaken the sacred laws of ad-hoc polymorphism when thou broke a critical assumption of the superclass (namely, each process has thine own id). The time frame to fix thy error has passed. Too much code has come to rely on this abhorrent behavior. Instead, we offer this gift: a method for creating an equivalent communicator with correct process id semantics. The calling code is responsible for deleting this controller.
|
staticprotected |
Definition at line 122 of file vtkSocketController.h.
1.8.1.2