13#ifndef mitkIGTLServer_h
14#define mitkIGTLServer_h
18#include <MitkOpenIGTLinkExports.h>
51 bool OpenConnection()
override;
59 bool CloseConnection()
override;
64 unsigned int GetNumberOfConnections()
override;
80 void Connect()
override;
87 void Receive()
override;
102 virtual void StopCommunicationWithSocket(
SocketListType& toBeRemovedSockets);
110 void StopCommunicationWithSocket(igtl::Socket* client)
override;
Interface for all OpenIGTLink Devices.
Superclass for OpenIGTLink server.
SocketListType m_RegisteredClients
A list with all registered clients.
std::mutex m_SentListMutex
mitkClassMacro(IGTLServer, IGTLDevice)
std::mutex m_ReceiveListMutex
std::list< igtl::Socket::Pointer > SocketListType
mitkNewMacro1Param(Self, bool)
SocketListType::iterator SocketListIteratorType