VTK
dox
Common
System
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
=========================================================================*/
20
#ifndef vtkClientSocket_h
21
#define vtkClientSocket_h
22
23
#include "vtkCommonSystemModule.h"
// For export macro
24
#include "
vtkSocket.h
"
25
class
vtkServerSocket
;
26
27
class
VTKCOMMONSYSTEM_EXPORT
vtkClientSocket
:
public
vtkSocket
28
{
29
public
:
30
static
vtkClientSocket
*
New
();
31
vtkTypeMacro(
vtkClientSocket
,
vtkSocket
);
32
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
33
37
int
ConnectToServer(
const
char
* hostname,
int
port
);
38
40
46
vtkGetMacro(ConnectingSide,
bool
);
48
49
protected
:
50
vtkClientSocket
();
51
~
vtkClientSocket
()
override
;
52
53
vtkSetMacro(ConnectingSide,
bool
);
54
bool
ConnectingSide
;
55
friend
class
vtkServerSocket
;
56
private
:
57
vtkClientSocket
(
const
vtkClientSocket
&) =
delete
;
58
void
operator=(
const
vtkClientSocket
&) =
delete
;
59
60
};
61
62
63
#endif
64
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkX3D::port
Definition:
vtkX3D.h:447
vtkServerSocket
Encapsulate a socket that accepts connections.
Definition:
vtkServerSocket.h:29
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkClientSocket::ConnectingSide
bool ConnectingSide
Definition:
vtkClientSocket.h:53
vtkClientSocket
Encapsulates a client socket.
Definition:
vtkClientSocket.h:27
vtkSocket
BSD socket encapsulation.
Definition:
vtkSocket.h:30
vtkSocket::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSocket.h
Generated by
1.8.16