//---------------------------------------------------------------------------
#ifndef ServerThreadH
#define ServerThreadH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <ScktComp.hpp>
//---------------------------------------------------------------------------
class ServerThread : public TThread
{
private:
protected:
    void __fastcall Execute();
public:
    __fastcall ServerThread(bool CreateSuspended);
    __thread TClientSocket *Socket;

    struct InBuffer
    {
     int sx,sy,ex,ey,maxIter;
     double long rMin,rInc,iMin,iInc;
    };
    __thread InBuffer SendBuf;
    __thread int Ips;
    __thread bool ServerBad;
    __thread bool Recovered;  // Used by server pool to indicate recovery status.
    __thread AnsiString Address;
    __thread AnsiString IP;
    
};
//---------------------------------------------------------------------------
#endif
