Another abandoned server code base... this is kind of an ancestor of taskrambler.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

89 lines
841 B

// Messages used by the Terminal and TerminalManager classes.
enum MsgType
{
CREATE_TERMINAL,
DELETE_TERMINAL,
RUN_DIAGNOSTICS,
PERFORM_SWITCHOVER
};
class Msg
{
//...
int msgType;
int terminalType;
int terminalId;
int otherTerminalId;
int terminalStatus;
public:
MsgType GetType() const;
int GetTerminalId() const;
int GetOtherTerminalId() const;
int GetTerminalType() const;
};
// Message used to create a terminal
class TerminalCreateMsg : public Msg
{
public:
int GetTerminalStatus() const;
};
// Acknowledgement to Terminal Create message.
class TerminalCreateAck : public Msg
{
public:
TerminalCreateAck(int terminalId, int terminalStatus);
};
// Terminal Delete message
class TerminalDeleteMsg : public Msg
{
};