TcpLib
Loading...
Searching...
No Matches
MyTestServer.h
Go to the documentation of this file.
1#ifndef INC_MYTESTSERVER_H
2#define INC_MYTESTSERVER_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include "TcpTypes.h"
45#include "TcpServer.h"
46//-----------------------------------------------------------------------------
85{
86 protected:
87 //============== Konstruktor
88 //-------------------------------------------------------------------------
99 //-------------------------------------------------------------------------
109 MyTestServer( unsigned int,
110 int,
111 int,
112 int,
113 int );
114 //-------------------------------------------------------------------------
124 MyTestServer( unsigned int ,
125 int,
126 int,
127 int,
128 unsigned int,
129 int );
130 //-------------------------------------------------------------------------
131
132 public:
133 //============== Konstruktoren
134 //-------------------------------------------------------------------------
165 MyTestServer( unsigned int uiPort,
166 int iAdressFamily,
167 int iSocketType,
168 int iProtocol,
169 unsigned int uiDataSize,
170 unsigned long ulMaxClients,
171 int iSecTimeOut );
172 //-------------------------------------------------------------------------
173
174 //============== Destruktore
175 //-------------------------------------------------------------------------
185 virtual ~MyTestServer();
186 //-------------------------------------------------------------------------
187
188 private:
189 //============== Copy-Konstruktor
190 //-------------------------------------------------------------------------
201 //-------------------------------------------------------------------------
202
203 public:
204 //============== Methoden
205 //-------------------------------------------------------------------------
217 virtual void processClientMessage( tcp::AbstractMessage * pTcpMessage );
218 //-------------------------------------------------------------------------
232 int sendToAllClients( std::string strMsg );
233 //-------------------------------------------------------------------------
234
235 protected:
236 //============== Methoden
237 //-------------------------------------------------------------------------
252 virtual void insertNewClient( Server::ServerReceiverTransmitter * pNewServerReceiverTransmitter );
253 //-------------------------------------------------------------------------
254
255 private:
256 //============== Operatoren
257 //-------------------------------------------------------------------------
268 //-------------------------------------------------------------------------
269};
270//-----------------------------------------------------------------------------
271#endif
Header for Server and Server::ServerReceiverTransmitter
For each library, here 'TcpLib' there is a type file.
An example class for a simple server derived from Server.
Definition MyTestServer.h:85
MyTestServer(const MyTestServer &)
MyTestServer & operator=(const MyTestServer &)
virtual void processClientMessage(tcp::AbstractMessage *pTcpMessage)
virtual ~MyTestServer()
int sendToAllClients(std::string strMsg)
MyTestServer(unsigned int uiPort, int iAdressFamily, int iSocketType, int iProtocol, unsigned int uiDataSize, unsigned long ulMaxClients, int iSecTimeOut)
MyTestServer(unsigned int, int, int, int, int)
MyTestServer(unsigned int, int, int, int, unsigned int, int)
virtual void insertNewClient(Server::ServerReceiverTransmitter *pNewServerReceiverTransmitter)
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