Client thread test version. Ready to connect.

This commit is contained in:
lotodore
2007-02-17 23:44:45 +00:00
parent 6eb192f846
commit 592863ecf5
11 changed files with 478 additions and 23 deletions
+16
View File
@@ -18,11 +18,15 @@
***************************************************************************/
/* Network client thread. */
#ifndef _CLIENTTHREAD_H_
#define _CLIENTTHREAD_H_
#include <core/thread.h>
#include <string>
#include <memory>
class ClientData;
class ClientState;
class ClientThread : public Thread
{
@@ -40,8 +44,20 @@ protected:
// Main function of the thread.
virtual void Main();
const ClientData &GetData() const;
ClientData &GetData();
void SetState(ClientState &newState);
private:
std::auto_ptr<ClientData> m_data;
ClientState *m_curState;
friend class ClientStateInit;
friend class ClientStateResolve;
friend class ClientStateConnect;
};
#endif