BMA Server Framework
/home/barant/Documents/Development/BMASockets/BMACommandSession.h
1
#ifndef __BMACommandSession_h__
2
#define __BMACommandSession_h__
3
4
#include "BMASession.h"
5
13
14
class
BMACommandSession
:
public
BMASession
{
15
16
public
:
17
BMACommandSession
(
BMAEPoll
&ePoll);
18
~
BMACommandSession
();
19
20
// string command;
21
22
virtual
void
output
(stringstream &out);
23
24
protected
:
25
// virtual void onConnected();
26
// virtual void onDataReceived(char *data, int length);
27
void
protocol(
char
*data,
int
length)
override
;
28
29
private
:
30
enum
Status {WELCOME, PROMPT, INPUT, PROCESS, DONE};
31
Status status = WELCOME;
32
33
};
34
35
#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
Generated by
1.8.13