VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
System
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
;
28
class
VTKCOMMONSYSTEM_EXPORT
vtkServerSocket
:
public
vtkSocket
29
{
30
public
:
31
static
vtkServerSocket
*
New
();
32
vtkTypeMacro(
vtkServerSocket
,
vtkSocket
);
33
void
PrintSelf
(ostream& os,
vtkIndent
indent);
34
37
int
CreateServer(
int
port
);
38
42
vtkClientSocket
* WaitForConnection(
unsigned
long
msec=0);
43
45
46
int
GetServerPort();
47
protected
:
48
vtkServerSocket
();
49
~
vtkServerSocket
();
51
52
private
:
53
vtkServerSocket
(
const
vtkServerSocket
&);
// Not implemented.
54
void
operator=(
const
vtkServerSocket
&);
// Not implemented.
55
};
56
57
58
#endif
59
Generated on Thu May 24 2012 22:22:13 for VTK by
1.8.1