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//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include <TcpTypes.h>
38#include <TcpClient.h>
39//-----------------------------------------------------------------------------
80{
81 protected:
82 //============== Konstruktor
83 //-------------------------------------------------------------------------
94 //-------------------------------------------------------------------------
104 MyTestClient( unsigned int,
105 int,
106 int,
107 int,
108 int );
109 //-------------------------------------------------------------------------
110
111 public:
112 //============== Konstruktoren
113 //-------------------------------------------------------------------------
151 MyTestClient( const std::string & rstrHostname,
152 unsigned int uiPort,
153 int iAdressFamily,
154 int iSocketType,
155 int iProtocol,
156 int iSecTimeOut );
157 //-------------------------------------------------------------------------
197 MyTestClient( const std::string & rstrHostname,
198 unsigned int uiPort,
199 int iAdressFamily,
200 int iSocketType,
201 int iProtocol,
202 unsigned int uiDataSize,
203 int iSecTimeOut );
204 //-------------------------------------------------------------------------
205
206 //============== Destruktore
207 //-------------------------------------------------------------------------
219 virtual ~MyTestClient();
220 //-------------------------------------------------------------------------
221
222 private:
223 //============== Copy-Konstruktor
224 //-------------------------------------------------------------------------
235 //-------------------------------------------------------------------------
236
237 protected:
238 //============== Methoden
239 //-------------------------------------------------------------------------
251 virtual void processServerMessage( tcp::Message * pTcpMessage );
252 //-------------------------------------------------------------------------
253
254 private:
255 //============== Operatoren
256 //-------------------------------------------------------------------------
267 //-------------------------------------------------------------------------
268};
269//-----------------------------------------------------------------------------
270#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:80
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:192
Contains a data stream which can be sent and received by the Tcp classes.
Definition TcpMessage.h:161