Added simple server. Added session establishment (only test code). Added sender thread.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
class ClientData;
|
||||
class ClientState;
|
||||
class ClientCallback;
|
||||
class SenderThread;
|
||||
|
||||
class ClientThread : public Thread
|
||||
{
|
||||
@@ -51,18 +52,22 @@ protected:
|
||||
ClientState &GetState();
|
||||
void SetState(ClientState &newState);
|
||||
|
||||
SenderThread &GetSender();
|
||||
|
||||
private:
|
||||
|
||||
std::auto_ptr<ClientData> m_data;
|
||||
ClientState *m_curState;
|
||||
ClientCallback &m_callback;
|
||||
|
||||
std::auto_ptr<SenderThread> m_sender;
|
||||
|
||||
friend class ClientStateInit;
|
||||
friend class ClientStateStartResolve;
|
||||
friend class ClientStateResolving;
|
||||
friend class ClientStateStartConnect;
|
||||
friend class ClientStateConnecting;
|
||||
friend class ClientStateStartSession;
|
||||
friend class ClientStateWaitSession;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user