Section: Visualization Toolkit Common Classes
To create an instance of class vtkSocket, simply invoke its constructor as follows
obj = vtkSocket
obj
is an instance of the vtkSocket class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkSocket = obj.NewInstance ()
vtkSocket = obj.SafeDownCast (vtkObject o)
int = obj.GetConnected ()
- Close the socket.
obj.CloseSocket ()
- These methods send data over the socket.
Returns 1 on success, 0 on error and raises vtkCommand::ErrorEvent.