1 |
#pragma once |
#pragma once |
2 |
|
|
3 |
#include <list> |
#include <list> |
4 |
|
#include <string> |
5 |
#include <cppsocket/tcpconnection.h> |
#include <cppsocket/tcpconnection.h> |
6 |
#include "thread.h" |
#include "thread.h" |
7 |
|
|
8 |
class ServerThread : public Thread |
class ServerThread : public Thread |
9 |
{ |
{ |
10 |
std::list<CPPSocket::TCPConnection*> mClients; |
std::list<CPPSocket::TCPConnection*> mClients; |
11 |
|
void parsePackage(std::string str); |
12 |
public: |
public: |
13 |
ServerThread(); |
ServerThread(); |
14 |
virtual ~ServerThread(); |
virtual ~ServerThread(); |