/home/barant/Documents/Development/BMASockets/BMACommandSession.h
#ifndef __BMACommandSession_h__
#define __BMACommandSession_h__
#include "BMASession.h"
class BMACommandSession : public BMASession {
public:
BMACommandSession(BMAEPoll &ePoll);
~BMACommandSession();
// string command;
virtual void output(stringstream &out);
protected:
// virtual void onConnected();
// virtual void onDataReceived(char *data, int length);
void protocol(char *data, int length) override;
private:
enum Status {WELCOME, PROMPT, INPUT, PROCESS, DONE};
Status status = WELCOME;
};
#endif
BMAEPoll
Definition: BMAEPoll.h:29
BMACommandSession::output
virtual void output(stringstream &out)
Definition: BMACommandSession.cpp:10
BMACommandSession
Definition: BMACommandSession.h:14
BMASession
Definition: BMASession.h:16