Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
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
36namespace igtl
37{
38
39class ServerSocket;
40
42{
43public:
48
51
53 int ConnectToServer(const char* hostname, int port);
54
55protected:
58
59 void PrintSelf(std::ostream& os) const;
60
61 friend class ServerSocket;
62
63private:
64 ClientSocket(const ClientSocket&); // Not implemented.
65 void operator=(const ClientSocket&); // Not implemented.
66};
67
68}
69
70#endif
71
igtlTypeMacro(igtl::ClientSocket, igtl::Socket) igtlNewMacro(igtl int ConnectToServer(const char *hostname, int port)
Connects to host. Returns 0 on success, -1 on error.
void PrintSelf(std::ostream &os) const
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
Implements transparent reference counting.
class IGTL_EXPORT Socket
Definition igtlSocket.h:62
#define igtlTypeMacro(thisClass, superclass)
Definition igtlMacro.h:486
#define igtlNewMacro(x)
Definition igtlMacro.h:431
#define IGTLCommon_EXPORT
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...

Generated for OpenIGTLink by Doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2012