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: Open IGT Link Library
4
Module: $HeadURL: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlClientSocket.h $
5
Language: C++
6
Date: $Date: 2010-06-09 16:16:36 -0400 (Wed, 09 Jun 2010) $
7
Version: $Revision: 6525 $
8
9
Copyright (c) Insight Software Consortium. All rights reserved.
10
11
This software is distributed WITHOUT ANY WARRANTY; without even
12
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13
PURPOSE. See the above copyright notices for more information.
14
15
=========================================================================*/
16
/*=========================================================================
17
18
Program: Visualization Toolkit
19
Module: $RCSfile: vtkClientSocket.h,v $
20
21
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
22
All rights reserved.
23
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
24
25
This software is distributed WITHOUT ANY WARRANTY; without even
26
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
27
PURPOSE. See the above copyright notice for more information.
28
29
=========================================================================*/
30
// .NAME igtlClientSocket - Encapsulates a client socket.
31
32
#ifndef __igtlClientSocket_h
33
#define __igtlClientSocket_h
34
35
#include "
igtlSocket.h
"
36
#include "
igtlWin32Header.h
"
37
38
namespace
igtl
39
{
40
41
class
ServerSocket;
42
43
class
IGTLCommon_EXPORT
ClientSocket
:
public
Socket
44
{
45
public
:
46
typedef
ClientSocket
Self
;
47
typedef
Socket
Superclass
;
48
typedef
SmartPointer<Self>
Pointer
;
49
typedef
SmartPointer<const Self>
ConstPointer
;
50
51
igtlTypeMacro
(
igtl::ClientSocket
,
igtl::Socket
)
52
igtlNewMacro
(igtl::
ClientSocket
);
53
54
// Description:
55
// Connects to host. Returns 0 on success, -1 on error.
56
int
ConnectToServer(const
char
* hostname,
int
port);
57
58
protected:
59
ClientSocket();
60
~ClientSocket();
61
62
void
PrintSelf(std::ostream& os) const;
63
64
//BTX
65
friend class
ServerSocket
;
66
//ETX
67
private:
68
ClientSocket(const ClientSocket&);
// Not implemented.
69
void
operator=(const ClientSocket&);
// Not implemented.
70
};
71
72
}
73
74
#endif
75
76
Generated at Thu Mar 20 2014 16:32:06 for OpenIGTLink by
1.8.1.2 written by
Dimitri van Heesch
, © 1997-2000