VTK
vtkClientSocket.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkClientSocket.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
19 #ifndef vtkClientSocket_h
20 #define vtkClientSocket_h
21 
22 #include "vtkCommonSystemModule.h" // For export macro
23 #include "vtkSocket.h"
24 class vtkServerSocket;
25 
27 {
28 public:
29  static vtkClientSocket* New();
31  void PrintSelf(ostream& os, vtkIndent indent);
32 
34  int ConnectToServer(const char* hostname, int port);
35 
37 
41  vtkGetMacro(ConnectingSide, bool);
43 
44 //BTX
45 protected:
48 
49  vtkSetMacro(ConnectingSide, bool);
51  friend class vtkServerSocket;
52 private:
53  vtkClientSocket(const vtkClientSocket&); // Not implemented.
54  void operator=(const vtkClientSocket&); // Not implemented.
55 //ETX
56 };
57 
58 
59 #endif
60 
vtkClientSocket::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTKCOMMONSYSTEM_EXPORT
#define VTKCOMMONSYSTEM_EXPORT
Definition: vtkCommonSystemModule.h:15
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkClientSocket::ConnectToServer
int ConnectToServer(const char *hostname, int port)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkCommonSystemModule.h
vtkServerSocket
Encapsulate a socket that accepts connections.
Definition: vtkServerSocket.h:29
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkClientSocket::~vtkClientSocket
~vtkClientSocket()
vtkClientSocket::ConnectingSide
bool ConnectingSide
Definition: vtkClientSocket.h:49
vtkClientSocket::vtkClientSocket
vtkClientSocket()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkClientSocket
Encapsulates a client socket.
Definition: vtkClientSocket.h:27
vtkSocket
BSD socket encapsulation.
Definition: vtkSocket.h:30
vtkSocket.h
vtkClientSocket::New
static vtkClientSocket * New()