#include <vtkSocketCommunicator.h>
Inheritance diagram for vtkSocketCommunicator:
This is a concrete implementation of vtkCommunicator which supports interprocess communication using BSD style sockets. It supports byte swapping for the communication of machines with different endianness.
Definition at line 59 of file vtkSocketCommunicator.h.
Public Types | |
typedef vtkCommunicator | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | WaitForConnection (int port) |
virtual void | CloseConnection () |
virtual int | ConnectTo (char *hostName, int port) |
int | ReceiveMessage (char *data, int *length, int maxlength) |
int | SendMessage (const char *data, int length) |
virtual int | GetSwapBytesInReceivedData () |
virtual int | GetIsConnected () |
int | Send (int *data, int length, int remoteProcessId, int tag) |
int | Send (unsigned long *data, int length, int remoteProcessId, int tag) |
int | Send (char *data, int length, int remoteProcessId, int tag) |
int | Send (unsigned char *data, int length, int remoteProcessId, int tag) |
int | Send (float *data, int length, int remoteProcessId, int tag) |
int | Send (double *data, int length, int remoteProcessId, int tag) |
int | Send (vtkDataObject *data, int remoteId, int tag) |
int | Send (vtkDataArray *data, int remoteId, int tag) |
int | Receive (int *data, int length, int remoteProcessId, int tag) |
int | Receive (unsigned long *data, int length, int remoteProcessId, int tag) |
int | Receive (char *data, int length, int remoteProcessId, int tag) |
int | Receive (unsigned char *data, int length, int remoteProcessId, int tag) |
int | Receive (float *data, int length, int remoteProcessId, int tag) |
int | Receive (double *data, int length, int remoteProcessId, int tag) |
int | Receive (vtkDataObject *data, int remoteId, int tag) |
int | Receive (vtkDataArray *data, int remoteId, int tag) |
virtual void | SetPerformHandshake (int) |
virtual void | PerformHandshakeOn () |
virtual void | PerformHandshakeOff () |
virtual int | GetPerformHandshake () |
Static Public Member Functions | |
vtkSocketCommunicator * | New () |
int | IsTypeOf (const char *type) |
vtkSocketCommunicator * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkSocketCommunicator () | |
~vtkSocketCommunicator () | |
int | ReceiveMessage (char *data, int size, int length, int tag) |
Protected Attributes | |
int | Socket |
int | IsConnected |
int | NumberOfProcesses |
int | SwapBytesInReceivedData |
int | PerformHandshake |
ofstream * | TraceFile |
|
Reimplemented from vtkCommunicator. Definition at line 63 of file vtkSocketCommunicator.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject.
|
|
Reimplemented from vtkCommunicator.
|
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkCommunicator.
|
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkCommunicator.
|
|
Reimplemented from vtkCommunicator.
|
|
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 vtkCommunicator.
|
|
Wait for connection on a given port. |
|
Close a connection. |
|
Open a connection to host. |
|
Returns 1 if bytes must be swapped in received ints, floats, etc |
|
Is the communicator connected?. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator.
|
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator.
|
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator.
|
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator.
|
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator.
|
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator.
|
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. Definition at line 100 of file vtkSocketCommunicator.h. References vtkCommunicator::Send(). |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. Definition at line 102 of file vtkSocketCommunicator.h. References vtkCommunicator::Send(). |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator.
|
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator.
|
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator.
|
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator.
|
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator.
|
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator.
|
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Reimplemented from vtkCommunicator. Definition at line 119 of file vtkSocketCommunicator.h. References vtkCommunicator::Receive(). |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Reimplemented from vtkCommunicator. Definition at line 121 of file vtkSocketCommunicator.h. References vtkCommunicator::Receive(). |
|
Set or get the PerformHandshake ivar. If it is on, the communicator will try to perform a handshake when connected. It is on by default. |
|
Set or get the PerformHandshake ivar. If it is on, the communicator will try to perform a handshake when connected. It is on by default. |
|
Set or get the PerformHandshake ivar. If it is on, the communicator will try to perform a handshake when connected. It is on by default. |
|
Set or get the PerformHandshake ivar. If it is on, the communicator will try to perform a handshake when connected. It is on by default. |
|
Wait for message and store it in the data. The message has maximum length of maxlength. It's actual length is stored in length. |
|
Send message. |
|
|
|
Definition at line 141 of file vtkSocketCommunicator.h. |
|
Definition at line 142 of file vtkSocketCommunicator.h. |
|
Definition at line 143 of file vtkSocketCommunicator.h. |
|
Definition at line 144 of file vtkSocketCommunicator.h. |
|
Definition at line 145 of file vtkSocketCommunicator.h. |
|
Definition at line 152 of file vtkSocketCommunicator.h. |