VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
vtkClientSocket Class Reference

Encapsulates a client socket. More...

#include <vtkClientSocket.h>

Inheritance diagram for vtkClientSocket:
Inheritance graph
[legend]
Collaboration diagram for vtkClientSocket:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkSocket Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkClientSocketNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
int ConnectToServer (const char *hostname, int port)
virtual bool GetConnectingSide ()

Static Public Member Functions

static vtkClientSocketNew ()
static int IsTypeOf (const char *type)
static vtkClientSocketSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkClientSocket ()
 ~vtkClientSocket ()
virtual void SetConnectingSide (bool)

Protected Attributes

bool ConnectingSide

Friends

class vtkServerSocket

Detailed Description

Encapsulates a client socket.

Definition at line 26 of file vtkClientSocket.h.


Member Typedef Documentation

Reimplemented from vtkSocket.

Definition at line 30 of file vtkClientSocket.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkSocket.

virtual vtkObjectBase* vtkClientSocket::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkSocket.

Reimplemented from vtkSocket.

void vtkClientSocket::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [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 vtkSocket.

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]

Friends And Related Function Documentation

friend class vtkServerSocket [friend]

Definition at line 51 of file vtkClientSocket.h.


Member Data Documentation

Definition at line 49 of file vtkClientSocket.h.


The documentation for this class was generated from the following file: