TcpLib
Loading...
Searching...
No Matches
MyTestClient.h
Go to the documentation of this file.
1#ifndef INC_MYTESTCLIENT_H
2#define INC_MYTESTCLIENT_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include <TcpTypes.h>
45#include <TcpClient.h>
46//-----------------------------------------------------------------------------
87{
88 protected:
89 //============== Konstruktor
90 //-------------------------------------------------------------------------
101 //-------------------------------------------------------------------------
111 MyTestClient( unsigned int,
112 int,
113 int,
114 int,
115 int );
116 //-------------------------------------------------------------------------
117
118 public:
119 //============== Konstruktoren
120 //-------------------------------------------------------------------------
158 MyTestClient( const std::string & rstrHostname,
159 unsigned int uiPort,
160 int iAdressFamily,
161 int iSocketType,
162 int iProtocol,
163 int iSecTimeOut );
164 //-------------------------------------------------------------------------
204 MyTestClient( const std::string & rstrHostname,
205 unsigned int uiPort,
206 int iAdressFamily,
207 int iSocketType,
208 int iProtocol,
209 unsigned int uiDataSize,
210 int iSecTimeOut );
211 //-------------------------------------------------------------------------
212
213 //============== Destruktore
214 //-------------------------------------------------------------------------
226 virtual ~MyTestClient();
227 //-------------------------------------------------------------------------
228
229 private:
230 //============== Copy-Konstruktor
231 //-------------------------------------------------------------------------
242 //-------------------------------------------------------------------------
243
244 protected:
245 //============== Methoden
246 //-------------------------------------------------------------------------
258 virtual void processServerMessage( tcp::Message * pTcpMessage );
259 //-------------------------------------------------------------------------
260
261 private:
262 //============== Operatoren
263 //-------------------------------------------------------------------------
274 //-------------------------------------------------------------------------
275};
276//-----------------------------------------------------------------------------
277#endif
Header for Client
For each library, here 'TcpLib' there is a type file.
An example class for a simple client derived from Client.
Definition MyTestClient.h:87
MyTestClient(unsigned int, int, int, int, int)
MyTestClient(const std::string &rstrHostname, unsigned int uiPort, int iAdressFamily, int iSocketType, int iProtocol, int iSecTimeOut)
MyTestClient & operator=(const MyTestClient &)
MyTestClient(const MyTestClient &)
MyTestClient(const std::string &rstrHostname, unsigned int uiPort, int iAdressFamily, int iSocketType, int iProtocol, unsigned int uiDataSize, int iSecTimeOut)
virtual void processServerMessage(tcp::Message *pTcpMessage)
virtual ~MyTestClient()
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