00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkClientSocket.h,v $ 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 vtkTypeRevisionMacro(vtkClientSocket, vtkSocket); 00030 void PrintSelf(ostream& os, vtkIndent indent); 00031 00033 int ConnectToServer(const char* hostname, int port); 00034 00035 protected: 00036 vtkClientSocket(); 00037 ~vtkClientSocket(); 00038 00039 //BTX 00040 friend class vtkServerSocket; 00041 //ETX 00042 private: 00043 vtkClientSocket(const vtkClientSocket&); // Not implemented. 00044 void operator=(const vtkClientSocket&); // Not implemented. 00045 }; 00046 00047 00048 #endif 00049