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
vtkClientSocket::~vtkClientSocket
~vtkClientSocket() override
vtkClientSocket::ConnectToServer
int ConnectToServer(const char *hostname, int port)
Connects to host.
vtkX3D::port
@ port
Definition:
vtkX3D.h:447
vtkServerSocket
Encapsulate a socket that accepts connections.
Definition:
vtkServerSocket.h:30
vtkClientSocket::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkClientSocket::ConnectingSide
bool ConnectingSide
Definition:
vtkClientSocket.h:53
vtkClientSocket::vtkClientSocket
vtkClientSocket()
vtkClientSocket
Encapsulates a client socket.
Definition:
vtkClientSocket.h:28
vtkSocket
BSD socket encapsulation.
Definition:
vtkSocket.h:31
vtkSocket.h
vtkClientSocket::New
static vtkClientSocket * New()
Generated by
1.8.20