GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloClient.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOCLIENT_H
2#define INC_GLOCLIENT_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <map>
45#include <TcpClient.h>
46#include "GloTypes.h"
47#include "GloOrderMsg.h"
48//-----------------------------------------------------------------------------
49namespace glo
50{
51 //---------------------------------------------------------------------------
52 /* Forwards */
53 class ClientThread;
54 //---------------------------------------------------------------------------
68 class Client : public tcp::Client
69 {
70 private:
71 //============== Attribute
72 //-----------------------------------------------------------------------
85 //-----------------------------------------------------------------------
99 //-----------------------------------------------------------------------
113 //-----------------------------------------------------------------------
114
115 protected:
116 //============== Konstruktoren
117 //-----------------------------------------------------------------------
129 Client( unsigned int, int, int, int, int );
130 Client( const std::string &, unsigned int, int, int, int, int );
131 Client( const std::string &, unsigned int, int, int, int, unsigned int, int );
133 //-----------------------------------------------------------------------
134
135 public:
136 //============== Konstruktoren
137 //-----------------------------------------------------------------------
173 Client( ClientThread * pParentClientThread,
174 const std::string & rstrHostname,
175 unsigned int uiPort,
176 int iAdressFamily,
177 int iSocketType,
178 int iProtocol,
179 int iSecTimeOut );
180 //-----------------------------------------------------------------------
181
182 //============== Destruktore
183 //-----------------------------------------------------------------------
193 virtual ~Client();
194 //-----------------------------------------------------------------------
195
196 private:
197 //============== Copy-Konstruktor
198 //-----------------------------------------------------------------------
208 Client( const Client & );
209 //-----------------------------------------------------------------------
210
211 public:
212 //============== Methoden
213 //-----------------------------------------------------------------------
230 int sendOrder( OrderMsg * pOrderMsg );
231 //-----------------------------------------------------------------------
251 virtual void processServerMessage( tcp::Message * pTcpMessage );
252 //-----------------------------------------------------------------------
272 virtual int disconnectServer();
273 //-----------------------------------------------------------------------
290 //-----------------------------------------------------------------------
291
292 private:
293 //============== Operatoren
294 //-----------------------------------------------------------------------
305 //-----------------------------------------------------------------------
306 };
307 //---------------------------------------------------------------------------
308} // namespace glo
309#endif
Header für OrderMsg
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
Header für Client
Oberklasse für die Klassen, welche mit einer Base 'verbunden' sind.
Definition GloCallBack.h:81
Der Client, welcher mit einem GloServer kommuniziert.
Definition GloClient.h:69
OrderMsg * m_pCurrentOrder
Definition GloClient.h:98
int sendOrder(OrderMsg *pOrderMsg)
CallBack * m_pWsaeConnResetGloServerCallBack
Definition GloClient.h:112
virtual ~Client()
ClientThread * m_pParentClientThread
Definition GloClient.h:84
void setWsaeConnResetGloServerCallBack(CallBack *pCallBack)
Client(ClientThread *pParentClientThread, const std::string &rstrHostname, unsigned int uiPort, int iAdressFamily, int iSocketType, int iProtocol, int iSecTimeOut)
Client(unsigned int, int, int, int, int)
Client(const Client &)
virtual int disconnectServer()
Client(const std::string &, unsigned int, int, int, int, int)
Client(const std::string &, unsigned int, int, int, int, unsigned int, int)
Client & operator=(const Client &)
virtual void processServerMessage(tcp::Message *pTcpMessage)
Objekte dieser Klasse dienen als Schnittstelle zwischen Base bzw. PrivateBase und Manager....
Definition GloClientThread.h:105
Mittels dieser Klasse wird die Kommunikation zwischen der Applikation, welche GlobalObjects nutzt und...
Definition GloOrderMsg.h:84
Eine einfache TCP-Clientklasse, welche ihr KnowHow in den abgeleiteten Klassen lernen soll.
Definition TcpClient.h:199
Beinhaltet einen Datenstrom, welcher von den Tcp-Klassen versendet und empfangen werden kann.
Definition TcpMessage.h:168
Definition GloAbstractBaseLot.h:49