VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkServerSocket Class Reference

Encapsulate a socket that accepts connections. More...

#include <vtkServerSocket.h>

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

List of all members.

Public Types

typedef vtkSocket Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkServerSocketNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
int CreateServer (int port)
vtkClientSocketWaitForConnection (unsigned long msec=0)

Static Public Member Functions

static vtkServerSocketNew ()
static int IsTypeOf (const char *type)
static vtkServerSocketSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
int GetServerPort ()
 vtkServerSocket ()
 ~vtkServerSocket ()

Detailed Description

Encapsulate a socket that accepts connections.

Definition at line 28 of file vtkServerSocket.h.


Member Typedef Documentation

Reimplemented from vtkSocket.

Definition at line 32 of file vtkServerSocket.h.


Constructor & Destructor Documentation

Returns the port on which the server is running.

Returns the port on which the server is running.


Member Function Documentation

static vtkServerSocket* vtkServerSocket::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkServerSocket::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 vtkServerSocket::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* vtkServerSocket::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkSocket.

Reimplemented from vtkSocket.

void vtkServerSocket::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.

Creates a server socket at a given port and binds to it. Returns -1 on error. 0 on success.

Waits for a connection. When a connection is received a new vtkClientSocket object is created and returned. Returns NULL on timeout.

Returns the port on which the server is running.


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