VTK
dox/Common/System/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 "vtkCommonSystemModule.h" // For export macro
00023 #include "vtkSocket.h"
00024 class vtkServerSocket;
00025 
00026 class VTKCOMMONSYSTEM_EXPORT vtkClientSocket : public vtkSocket
00027 {
00028 public:
00029   static vtkClientSocket* New();
00030   vtkTypeMacro(vtkClientSocket, vtkSocket);
00031   void PrintSelf(ostream& os, vtkIndent indent);
00032 
00034   int ConnectToServer(const char* hostname, int port);
00035 
00037 
00041   vtkGetMacro(ConnectingSide, bool);
00043 
00044 //BTX
00045 protected:
00046   vtkClientSocket();
00047   ~vtkClientSocket();
00048 
00049   vtkSetMacro(ConnectingSide, bool);
00050   bool ConnectingSide;
00051   friend class vtkServerSocket;
00052 private:
00053   vtkClientSocket(const vtkClientSocket&); // Not implemented.
00054   void operator=(const vtkClientSocket&); // Not implemented.
00055 //ETX
00056 };
00057 
00058 
00059 #endif
00060