GlobalObjects
Loading...
Searching...
No Matches
GloClient.h
Go to the documentation of this file.
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 for OrderMsg
For each library, here 'GlobalObjects' there is a type file.
Header for Client
Superclass for the classes that are 'connected' to a Base.
Definition GloCallBack.h:81
The client, which communicates with a GloServer.
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)
Objects of this class serve as interface between Base or PrivateBase and Manager. In the documentatio...
Definition GloClientThread.h:105
This class is used to handle the communication between the application that uses GlobalObjects and Gl...
Definition GloOrderMsg.h:84
A simple TCP client class, which should learn its know-how in the derived classes.
Definition TcpClient.h:199
Contains a data stream which can be sent and received by the Tcp classes.
Definition TcpMessage.h:168
Definition GloAbstractBaseLot.h:49