VTK
vtkServerSocket.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkServerSocket.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 =========================================================================*/
21 #ifndef vtkServerSocket_h
22 #define vtkServerSocket_h
23 
24 #include "vtkCommonSystemModule.h" // For export macro
25 #include "vtkSocket.h"
26 
27 class vtkClientSocket;
29 {
30 public:
31  static vtkServerSocket* New();
33  void PrintSelf(ostream& os, vtkIndent indent);
34 
37  int CreateServer(int port);
38 
42  vtkClientSocket* WaitForConnection(unsigned long msec=0);
43 
45 
47 protected:
51 
52 private:
53  vtkServerSocket(const vtkServerSocket&); // Not implemented.
54  void operator=(const vtkServerSocket&); // Not implemented.
55 };
56 
57 
58 #endif
59 
vtkServerSocket::CreateServer
int CreateServer(int port)
vtkServerSocket::~vtkServerSocket
~vtkServerSocket()
vtkServerSocket::vtkServerSocket
vtkServerSocket()
vtkServerSocket::GetServerPort
int GetServerPort()
VTKCOMMONSYSTEM_EXPORT
#define VTKCOMMONSYSTEM_EXPORT
Definition: vtkCommonSystemModule.h:15
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkCommonSystemModule.h
vtkServerSocket
Encapsulate a socket that accepts connections.
Definition: vtkServerSocket.h:29
vtkServerSocket::WaitForConnection
vtkClientSocket * WaitForConnection(unsigned long msec=0)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkServerSocket::New
static vtkServerSocket * New()
vtkClientSocket
Encapsulates a client socket.
Definition: vtkClientSocket.h:27
vtkSocket
BSD socket encapsulation.
Definition: vtkSocket.h:30
vtkServerSocket::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSocket.h