VTK
|
Encapsulates a client socket. More...
#include <vtkClientSocket.h>
Public Types | |
typedef vtkSocket | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkClientSocket * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
int | ConnectToServer (const char *hostname, int port) |
virtual bool | GetConnectingSide () |
Static Public Member Functions | |
static vtkClientSocket * | New () |
static int | IsTypeOf (const char *type) |
static vtkClientSocket * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkClientSocket () | |
~vtkClientSocket () | |
virtual void | SetConnectingSide (bool) |
Protected Attributes | |
bool | ConnectingSide |
Friends | |
class | vtkServerSocket |
Encapsulates a client socket.
Definition at line 26 of file vtkClientSocket.h.
typedef vtkSocket vtkClientSocket::Superclass |
Reimplemented from vtkSocket.
Definition at line 30 of file vtkClientSocket.h.
vtkClientSocket::vtkClientSocket | ( | ) | [protected] |
vtkClientSocket::~vtkClientSocket | ( | ) | [protected] |
static vtkClientSocket* vtkClientSocket::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
static int vtkClientSocket::IsTypeOf | ( | const char * | name | ) | [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 vtkSocket.
virtual int vtkClientSocket::IsA | ( | const char * | name | ) | [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 vtkSocket.
static vtkClientSocket* vtkClientSocket::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkSocket.
virtual vtkObjectBase* vtkClientSocket::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkSocket.
vtkClientSocket* vtkClientSocket::NewInstance | ( | ) | const |
Reimplemented from vtkSocket.
void vtkClientSocket::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
int vtkClientSocket::ConnectToServer | ( | const char * | hostname, |
int | port | ||
) |
Connects to host. Returns 0 on success, -1 on error.
virtual bool vtkClientSocket::GetConnectingSide | ( | ) | [virtual] |
Returns if the socket is on the connecting side (the side that requests a ConnectToServer() or on the connected side (the side that was waiting for the client to connect). This is used to disambiguate the two ends of a socket connection.
virtual void vtkClientSocket::SetConnectingSide | ( | bool | ) | [protected, virtual] |
friend class vtkServerSocket [friend] |
Definition at line 51 of file vtkClientSocket.h.
bool vtkClientSocket::ConnectingSide [protected] |
Definition at line 49 of file vtkClientSocket.h.