GlobalObjects
Loading...
Searching...
No Matches
GloTcpServerReceiver.h
Go to the documentation of this file.
1#ifndef INC_GLOTCPSERVERREADER_H
2#define INC_GLOTCPSERVERREADER_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <string>
45#include "GloTypes.h"
46#include <TcpServerReceiver.h>
47#include "GloServer.h"
48//-----------------------------------------------------------------------------
49namespace glo
50{
51 //---------------------------------------------------------------------------
52 /* Forwards */
53 class ClassInfo;
54 //---------------------------------------------------------------------------
55 #ifdef _MSC_VER
56 /* class X erfordert eine DLL-Schnittstelle, die von Clients von class 'LimitRecord' verwendet wird */
57 #pragma warning( disable : 4251 )
58 #endif
59 //---------------------------------------------------------------------------
81 {
82 private:
83 //============== Friends
84 //-----------------------------------------------------------------------
85 friend class Server;
86 //-----------------------------------------------------------------------
87
88 //============== Attribute
89 //-----------------------------------------------------------------------
102 //-----------------------------------------------------------------------
112 std::string m_sSchemaName;
113 //-----------------------------------------------------------------------
114
115 protected:
116 //============== Konstruktoren
117 //-----------------------------------------------------------------------
119
129 TcpServerReceiver( SOCKET Socket );
130 TcpServerReceiver( tcp::TcpMain * pParent, SOCKET Socket );
131 TcpServerReceiver( tcp::TcpMain * pParent, SOCKET Socket, unsigned int iDataSize );
133 //-----------------------------------------------------------------------
134
135 public:
136 //============== Konstruktoren
137 //-----------------------------------------------------------------------
158 TcpServerReceiver( tcp::Server * pParent, SOCKET Socket, unsigned int uiDataSize );
159 //-----------------------------------------------------------------------
170 //-----------------------------------------------------------------------
171
172 protected:
173 //============== Methoden
174 //-----------------------------------------------------------------------
190 virtual int acceptMessage( tcp::AbstractMessage * pTcpMessage );
191 //-----------------------------------------------------------------------
204 //-----------------------------------------------------------------------
239 int getSchemaMap( std::map< unsigned long, ClassInfo *, std::less<unsigned long> > & rSchemaMap,
240 const std::string & rstrBaseName,
241 bool bCopy = true );
242 //-----------------------------------------------------------------------
243 };
244 //---------------------------------------------------------------------------
245 #ifdef _MSC_VER
246 /* class X erfordert eine DLL-Schnittstelle, die von Clients von class 'LimitRecord' verwendet wird */
247 #pragma warning( default : 4251 )
248 #endif
249 //---------------------------------------------------------------------------
250} // namespace glo
251#endif
Header for Server and Server::TcpServerReceiverTransmitter
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
Header for ServerReceiver.
This class contains all information to store objects of a class in a database, to build objects from ...
Definition GloClassInfo.h:86
A special ServerReceiverTransmitter for the Server. Its ServerReceiver is of the derived type TcpServ...
Definition GloServer.h:91
The server that communicates with Client's
Definition GloServer.h:71
Class that communicates with a tcp::Client via a SOCKET and delivers the result of the reception of t...
Definition GloTcpServerReceiver.h:81
int getSchemaMap(std::map< unsigned long, ClassInfo *, std::less< unsigned long > > &rSchemaMap, const std::string &rstrBaseName, bool bCopy=true)
virtual ~TcpServerReceiver()
TcpServerReceiver(tcp::Server *pParent, SOCKET Socket, unsigned int uiDataSize)
TcpServerReceiver(tcp::TcpMain *pParent, SOCKET Socket)
Server::TcpServerReceiverTransmitter * m_pMyReceiverTransmitter
Definition GloTcpServerReceiver.h:101
virtual int acceptMessage(tcp::AbstractMessage *pTcpMessage)
TcpServerReceiver(tcp::TcpMain *pParent, SOCKET Socket, unsigned int iDataSize)
void setReceiverTransmitter(Server::TcpServerReceiverTransmitter *pReceiverTransmitter)
std::string m_sSchemaName
Definition GloTcpServerReceiver.h:112
TcpServerReceiver(SOCKET Socket)
Base class for messages which can be sent, received and processed by the Tcp-classes.
Definition TcpMessage.h:97
A simple TCP server class, which should learn its know-how in the derived classes.
Definition TcpServer.h:268
Class that communicates with a Client via a SOCKET and delivers its receive result of type ServerMess...
Definition TcpServerReceiver.h:81
Superclass for Client and Server, which 'learns' its know-how in the derived classes.
Definition TcpMain.h:110
Definition GloAbstractBaseLot.h:49