VTK
dox/Common/vtkClientSocket.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkClientSocket.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00019 #ifndef __vtkClientSocket_h
00020 #define __vtkClientSocket_h
00021 
00022 #include "vtkSocket.h"
00023 class vtkServerSocket;
00024 
00025 class VTK_COMMON_EXPORT vtkClientSocket : public vtkSocket
00026 {
00027 public:
00028   static vtkClientSocket* New();
00029   vtkTypeMacro(vtkClientSocket, vtkSocket);
00030   void PrintSelf(ostream& os, vtkIndent indent);
00031 
00033   int ConnectToServer(const char* hostname, int port); 
00034  
00036 
00040   vtkGetMacro(ConnectingSide, bool);
00042 
00043 //BTX
00044 protected:
00045   vtkClientSocket();
00046   ~vtkClientSocket();
00047 
00048   vtkSetMacro(ConnectingSide, bool);
00049   bool ConnectingSide;
00050   friend class vtkServerSocket;
00051 private:
00052   vtkClientSocket(const vtkClientSocket&); // Not implemented.
00053   void operator=(const vtkClientSocket&); // Not implemented.
00054 //ETX
00055 };
00056 
00057 
00058 #endif
00059