Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
Source
igtlClientSocket.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: The OpenIGTLink Library
4
Language: C++
5
Web page: http://openigtlink.org/
6
7
Copyright (c) Insight Software Consortium. All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notices for more information.
12
13
=========================================================================*/
14
/*=========================================================================
15
16
Program: Visualization Toolkit
17
Module: $RCSfile: vtkClientSocket.h,v $
18
19
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
20
All rights reserved.
21
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
22
23
This software is distributed WITHOUT ANY WARRANTY; without even
24
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
25
PURPOSE. See the above copyright notice for more information.
26
27
=========================================================================*/
28
// .NAME igtlClientSocket - Encapsulates a client socket.
29
30
#ifndef __igtlClientSocket_h
31
#define __igtlClientSocket_h
32
33
#include "
igtlSocket.h
"
34
#include "
igtlWin32Header.h
"
35
36
namespace
igtl
37
{
38
39
class
ServerSocket;
40
41
class
IGTLCommon_EXPORT
ClientSocket
:
public
Socket
42
{
43
public
:
44
typedef
ClientSocket
Self
;
45
typedef
Socket
Superclass
;
46
typedef
SmartPointer<Self>
Pointer
;
47
typedef
SmartPointer<const Self>
ConstPointer
;
48
49
igtlTypeMacro
(
igtl::ClientSocket
,
igtl::Socket
)
50
igtlNewMacro
(
igtl::ClientSocket
);
51
53
int
ConnectToServer(
const
char
* hostname,
int
port);
54
55
protected
:
56
ClientSocket
();
57
~
ClientSocket
();
58
59
void
PrintSelf(std::ostream& os)
const
;
60
61
friend
class
ServerSocket
;
62
63
private
:
64
ClientSocket
(
const
ClientSocket
&);
// Not implemented.
65
void
operator=(
const
ClientSocket
&);
// Not implemented.
66
};
67
68
}
69
70
#endif
71
igtl::ClientSocket::Self
ClientSocket Self
Definition:
igtlClientSocket.h:44
igtlTypeMacro
#define igtlTypeMacro(thisClass, superclass)
Definition:
igtlMacro.h:486
igtl::ClientSocket::Superclass
Socket Superclass
Definition:
igtlClientSocket.h:45
igtl::SmartPointer< Self >
igtl
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
Definition:
igtlBindMessage.h:25
igtlWin32Header.h
igtl::ServerSocket
Definition:
igtlServerSocket.h:42
igtl::ClientSocket::ConstPointer
SmartPointer< const Self > ConstPointer
Definition:
igtlClientSocket.h:47
IGTLCommon_EXPORT
#define IGTLCommon_EXPORT
Definition:
igtlWin32Header.h:151
igtlSocket.h
igtl::ClientSocket::Pointer
SmartPointer< Self > Pointer
Definition:
igtlClientSocket.h:46
igtl::Socket
class IGTL_EXPORT Socket
Definition:
igtlSocket.h:61
igtlNewMacro
#define igtlNewMacro(x)
Definition:
igtlMacro.h:431
igtl::ClientSocket
Definition:
igtlClientSocket.h:41
Generated at Sat Apr 15 2017 02:30:07 for OpenIGTLink by
1.8.13 written by
Dimitri van Heesch
, © 1997-2012